From 52ca5390c2b54374e62cbcd2efaf78edaa4e7249 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 29 Mar 2025 15:00:22 -0400 Subject: Add staticheck to CI (#152) * Add staticheck to CI Signed-off-by: Xe Iaso * fix staticcheck warnings Signed-off-by: Xe Iaso * oh, right, playwright is broken Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso --- internal/headers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/headers.go') diff --git a/internal/headers.go b/internal/headers.go index d73fa33..a48ce54 100644 --- a/internal/headers.go +++ b/internal/headers.go @@ -26,7 +26,7 @@ func UnchangingCache(next http.Handler) http.Handler { // RemoteXRealIP sets the X-Real-Ip header to the request's real IP if // the setting is enabled by the user. func RemoteXRealIP(useRemoteAddress bool, bindNetwork string, next http.Handler) http.Handler { - if useRemoteAddress == false { + if !useRemoteAddress { slog.Debug("skipping middleware, useRemoteAddress is empty") return next } -- cgit v1.2.3