We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple calls to response.WriteHeader (package net/http) are superfluous.
response.WriteHeader
net/http
Examples:
w.WriteHeader(http.StatusOK) if _, err := w.Write([]byte("ok")); err != nil { w.WriteHeader(http.StatusInternalServerError) }
The second call to WriteHeader will issue a log line in net/http.
WriteHeader
The text was updated successfully, but these errors were encountered:
Related to golangci/golangci-lint#3614
Sorry, something went wrong.
No branches or pull requests
Multiple calls to
response.WriteHeader
(packagenet/http
) are superfluous.Examples:
The second call to
WriteHeader
will issue a log line innet/http
.The text was updated successfully, but these errors were encountered: