From fb29aa26ea5ec62922de274c7c68f9bcc46e8454 Mon Sep 17 00:00:00 2001 From: Stavros Date: Tue, 16 Jun 2026 19:29:21 +0300 Subject: [PATCH] chore: remove recover as nothing can panic in the lockdown function --- internal/service/auth_service.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/service/auth_service.go b/internal/service/auth_service.go index 1bffd8d0..5e79ff75 100644 --- a/internal/service/auth_service.go +++ b/internal/service/auth_service.go @@ -639,12 +639,6 @@ func (auth *AuthService) GetOAuthPendingSession(sessionId string) (*OAuthPending } func (auth *AuthService) lockdownMode() { - defer func() { - if r := recover(); r != nil { - auth.log.App.Error().Interface("panic", r).Msg("Recovered from panic in lockdownMode") - } - }() - auth.lockdown.mu.Lock() if auth.lockdown.active {