mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-18 17:30:13 +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() {
|
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()
|
auth.lockdown.mu.Lock()
|
||||||
|
|
||||||
if auth.lockdown.active {
|
if auth.lockdown.active {
|
||||||
|
|||||||
Reference in New Issue
Block a user