fix(auth): replace wastedassign ok := false with var ok bool

This commit is contained in:
sky5454 2026-04-04 06:44:21 +08:00
parent d2924bc5ac
commit acea8bec21

View file

@ -98,7 +98,7 @@ func (h *launcherAuthHandlers) handleLogin(w http.ResponseWriter, r *http.Reques
return return
} }
in := strings.TrimSpace(body.Password) in := strings.TrimSpace(body.Password)
ok := false var ok bool
if h.isStoreInitialized(r.Context()) { if h.isStoreInitialized(r.Context()) {
// Bcrypt path: verify against the stored hash. // Bcrypt path: verify against the stored hash.