From 87b279dbef01683a958b148d09552724a68fca82 Mon Sep 17 00:00:00 2001 From: notanatol Date: Fri, 12 Jan 2024 18:56:53 +0200 Subject: [PATCH] fix: order --- pkg/api/metrics.go | 3 ++- pkg/log/httpaccess/http_access.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/api/metrics.go b/pkg/api/metrics.go index 3ec9ec7cf34..05cd074010b 100644 --- a/pkg/api/metrics.go +++ b/pkg/api/metrics.go @@ -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 } diff --git a/pkg/log/httpaccess/http_access.go b/pkg/log/httpaccess/http_access.go index 98803416bd7..24b936c7dae 100644 --- a/pkg/log/httpaccess/http_access.go +++ b/pkg/log/httpaccess/http_access.go @@ -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() }