Using "if not" instead of "if x: pass"

pull/8/head
sgoudham 4 years ago
parent c5b631f8b6
commit 99bd34de3e

@ -34,10 +34,7 @@ async def on_message(message):
return
# Don't count messages that are taken in the dms
if isinstance(message.channel, DMChannel):
pass
else:
if not isinstance(message.channel, DMChannel):
# Using connection to the database
with db.connection() as conn:

Loading…
Cancel
Save