Skip to content

Commit

Permalink
refactor(exts/meta): Don't use walrus
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 31, 2024
1 parent b690fbe commit c2c43b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zibot/exts/meta/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ async def onHighlight(self, message: discord.Message):
self.lastSeen[channelId] = ExpiringDict(maxAgeSeconds=1800)
self.lastSeen[channelId][authorId] = msgId

if not (guildHighlight := self.highlights.get(guild.id)):
guildHighlight = self.highlights.get(guild.id)
if not guildHighlight:
return

for hl, owners in guildHighlight.items():
Expand Down

0 comments on commit c2c43b4

Please sign in to comment.