aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-06-19 20:33:17 +0200
committerGravatar kwzrd <[email protected]>2020-06-19 20:33:57 +0200
commitb563063c1a25a0a775ea1fb6cf31b7ef9725e14e (patch)
tree260e6e3dc93ad9cd15e5047ba2dda879908c8005
parentIncidents: annotate possible None type (diff)
Incidents: reduce excessive whitespace
This is way too spacious for how little is happening here. Suggested by ks129. Co-authored-by: ks129 <[email protected]>
-rw-r--r--bot/cogs/moderation/incidents.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/cogs/moderation/incidents.py b/bot/cogs/moderation/incidents.py
index c09d8e1a7..70921462d 100644
--- a/bot/cogs/moderation/incidents.py
+++ b/bot/cogs/moderation/incidents.py
@@ -61,11 +61,8 @@ async def add_signals(incident: discord.Message) -> None:
existing_reacts = own_reactions(incident)
for signal_emoji in Signal:
-
- # This will not raise, but it is a superfluous API call that can be avoided
- if signal_emoji.value in existing_reacts:
+ if signal_emoji.value in existing_reacts: # This would not raise, but it is a superfluous API call
log.trace(f"Skipping emoji as it's already been placed: {signal_emoji}")
-
else:
log.trace(f"Adding reaction: {signal_emoji}")
await incident.add_reaction(signal_emoji.value)