Skip to content

Commit 004c543

Browse files
committed
fix linter
1 parent 63764ee commit 004c543

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/auth/auth.go

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ func URLTokenAuth(token string) func(next http.Handler) http.Handler {
1111
pathParts := strings.Split(r.URL.Path, "/")
1212
if len(pathParts) < 2 || pathParts[len(pathParts)-1] != token {
1313
w.WriteHeader(http.StatusUnauthorized)
14+
1415
return
1516
}
1617
// Remove the token part from the path to forward the request to the next handler

0 commit comments

Comments
 (0)