Skip to content

Commit dd7d231

Browse files
committed
add missing return
1 parent 1f1f199 commit dd7d231

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/api/middleware/oauth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ func DiscordAuth(bot *discordgo.Session, requiredRole string) gin.HandlerFunc {
7878
c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{
7979
"error": "You are not a member of the Discord server",
8080
})
81+
return
8182
}
8283

8384
roleCache.Store(authHeader, cacheEntry{

0 commit comments

Comments
 (0)