Skip to content

Commit

Permalink
fix: order
Browse files Browse the repository at this point in the history
  • Loading branch information
notanatol committed Jan 12, 2024
1 parent 697ecbd commit 87b279d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/api/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ type UpgradedResponseWriter interface {
http.Pusher
http.Hijacker
http.Flusher
//lint:ignore SA1019 CloseNotifier interface is required by gorilla compress handler
// lint:ignore SA1019 CloseNotifier interface is required by gorilla compress handler
// nolint:staticcheck
http.CloseNotifier
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/log/httpaccess/http_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ func (rr *responseRecorder) WriteHeader(s int) {

// CloseNotify implements http.CloseNotifier.
func (rr *responseRecorder) CloseNotify() <-chan bool {
//lint:ignore SA1019 CloseNotifier interface is required by gorilla compress handler.
// nolint:staticcheck
// lint:ignore SA1019 CloseNotifier interface is required by gorilla compress handler
return rr.ResponseWriter.(http.CloseNotifier).CloseNotify()
}

Expand Down

0 comments on commit 87b279d

Please sign in to comment.