mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-16 16:30:23 +00:00
chore: remove recover as nothing can panic in the lockdown function
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user