Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MakMuftic committed May 23, 2024
1 parent 524bd55 commit 14841e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ func URLTokenAuth(token string) func(next http.Handler) http.Handler {
authToken := r.URL.Query().Get("auth_token")
if authToken == "" || authToken != token {
w.WriteHeader(http.StatusUnauthorized)

return
}
next.ServeHTTP(w, r)
Expand Down

0 comments on commit 14841e6

Please sign in to comment.