From 3e4ee0eaef8969a607a4020ec6f029e832a7e50c Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 5 Feb 2026 09:03:49 +1100 Subject: [PATCH] Lint --- internal/api/authentication.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/api/authentication.go b/internal/api/authentication.go index 5a7d1e626..0ff2bcca1 100644 --- a/internal/api/authentication.go +++ b/internal/api/authentication.go @@ -58,9 +58,9 @@ func authenticateHandler(g UserAuthenticator) func(http.Handler) http.Handler { if apiKey != "" { u, err = g.AuthenticateByAPIKey(ctx, apiKey) } else { - userID, err := manager.GetInstance().SessionStore.GetSessionUserID(w, r) - if err != nil { - logger.Errorf("error getting session user ID: %v", err) + userID, getErr := manager.GetInstance().SessionStore.GetSessionUserID(w, r) + if getErr != nil { + logger.Errorf("error getting session user ID: %v", getErr) http.Error(w, "internal server error", http.StatusInternalServerError) return }