fix: return in wrong spot

This commit is contained in:
Derrick Hammer 2024-03-20 14:34:48 -04:00
parent cfce7348d4
commit 7df6bb245b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -172,9 +172,9 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl
if unauthorized { if unauthorized {
http.Error(w, err.Error(), http.StatusInternalServerError) http.Error(w, err.Error(), http.StatusInternalServerError)
}
return return
} }
}
userId, err := strconv.ParseUint(claim.Subject, 10, 64) userId, err := strconv.ParseUint(claim.Subject, 10, 64)