From acea8bec213961f539f702afe76cf3a863180fef Mon Sep 17 00:00:00 2001 From: sky5454 Date: Sat, 4 Apr 2026 06:44:21 +0800 Subject: [PATCH] fix(auth): replace wastedassign ok := false with var ok bool --- web/backend/api/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/backend/api/auth.go b/web/backend/api/auth.go index a40f3c6fb..94e260b1b 100644 --- a/web/backend/api/auth.go +++ b/web/backend/api/auth.go @@ -98,7 +98,7 @@ func (h *launcherAuthHandlers) handleLogin(w http.ResponseWriter, r *http.Reques return } in := strings.TrimSpace(body.Password) - ok := false + var ok bool if h.isStoreInitialized(r.Context()) { // Bcrypt path: verify against the stored hash.