chore: PLR6201 Use a set literal when testing for membership

This commit is contained in:
Joe 2024-09-14 14:56:36 +08:00
parent cd277aa2d8
commit 18adee6882
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ class AccountService:
if not account:
return None
if account.status in [AccountStatus.BANNED.value, AccountStatus.CLOSED.value]:
if account.status in {AccountStatus.BANNED.value, AccountStatus.CLOSED.value}:
raise Unauthorized("Account is banned or closed.")
return account