Skip to content

Commit 88c15f3

Browse files
committed
Format code
1 parent 773ff18 commit 88c15f3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

discord/bot.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,18 +307,12 @@ def _check_command(cmd: ApplicationCommand, match: Mapping[str, Any]) -> bool:
307307
]:
308308
# We have a difference
309309
return True
310-
elif (attr := getattr(cmd, check, None)) != (
311-
found := match.get(check)
312-
):
310+
elif (attr := getattr(cmd, check, None)) != (found := match.get(check)):
313311
# We might have a difference
314312
if "localizations" in check and bool(attr) == bool(found):
315313
# unlike other attrs, localizations are MISSING by default
316314
continue
317-
elif (
318-
check == "default_permission"
319-
and attr is True
320-
and found is None
321-
):
315+
elif check == "default_permission" and attr is True and found is None:
322316
# This is a special case
323317
# TODO: Remove for perms v2
324318
continue

0 commit comments

Comments
 (0)