Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 5a6e9b1

Browse files
committed
stupid unless-phobic rubocop rule
1 parent 890dd07 commit 5a6e9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/discourse_ai/discord/bot_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def interactions
2222
# Respond to Discord PING request
2323
render json: { type: 1 }
2424
else
25-
unless SiteSetting.ai_discord_allowed_guilds_map.include?(interaction.guild_id)
25+
if !SiteSetting.ai_discord_allowed_guilds_map.include?(interaction.guild_id)
2626
return head :forbidden
2727
end
2828

0 commit comments

Comments
 (0)