Skip to content

Commit

Permalink
lint: warn on write error suppressed
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Jan 1, 2025
1 parent 92456e6 commit 5970650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
TZ: "America/Chicago"

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.59
version: v1.63

- name: install goveralls
run: |
Expand Down
2 changes: 1 addition & 1 deletion tollbooth.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func LimitHandler(lmt *limiter.Limiter) func(http.Handler) http.Handler {
lmt.ExecOnLimitReached(w, r)
w.Header().Add("Content-Type", lmt.GetMessageContentType())
w.WriteHeader(httpError.StatusCode)
w.Write([]byte(httpError.Message))
w.Write([]byte(httpError.Message)) //nolint:gosec // not much we can do here with failed write
return
}
next.ServeHTTP(w, r)
Expand Down

0 comments on commit 5970650

Please sign in to comment.