mirror of
https://github.com/stashapp/stash.git
synced 2026-02-07 16:05:47 +01:00
Lint
This commit is contained in:
parent
976c7f0ba6
commit
3e4ee0eaef
1 changed files with 3 additions and 3 deletions
|
|
@ -58,9 +58,9 @@ func authenticateHandler(g UserAuthenticator) func(http.Handler) http.Handler {
|
|||
if apiKey != "" {
|
||||
u, err = g.AuthenticateByAPIKey(ctx, apiKey)
|
||||
} else {
|
||||
userID, err := manager.GetInstance().SessionStore.GetSessionUserID(w, r)
|
||||
if err != nil {
|
||||
logger.Errorf("error getting session user ID: %v", err)
|
||||
userID, getErr := manager.GetInstance().SessionStore.GetSessionUserID(w, r)
|
||||
if getErr != nil {
|
||||
logger.Errorf("error getting session user ID: %v", getErr)
|
||||
http.Error(w, "internal server error", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue