Skip to content

Commit fb29aa2

Browse files
committed
chore: remove recover as nothing can panic in the lockdown function
1 parent ef56748 commit fb29aa2

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

internal/service/auth_service.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,6 @@ func (auth *AuthService) GetOAuthPendingSession(sessionId string) (*OAuthPending
639639
}
640640

641641
func (auth *AuthService) lockdownMode() {
642-
defer func() {
643-
if r := recover(); r != nil {
644-
auth.log.App.Error().Interface("panic", r).Msg("Recovered from panic in lockdownMode")
645-
}
646-
}()
647-
648642
auth.lockdown.mu.Lock()
649643

650644
if auth.lockdown.active {

0 commit comments

Comments
 (0)