File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -238,9 +238,8 @@ async def validate_usernames(
238238 )
239239 tk = None
240240 for u in to_query :
241- exists = u in res
242- to_return [u ] = exists
243- if exists :
241+ to_return [u ] = u in res
242+ if to_return [u ]:
244243 if not tk : # minor optimization, don't get the token until it's needed
245244 tk = await self .get_token (token )
246245 # Usernames are permanent but can be disabled, so we expire based on time
Original file line number Diff line number Diff line change @@ -238,9 +238,8 @@ def validate_usernames(
238238 )
239239 tk = None
240240 for u in to_query :
241- exists = u in res
242- to_return [u ] = exists
243- if exists :
241+ to_return [u ] = u in res
242+ if to_return [u ]:
244243 if not tk : # minor optimization, don't get the token until it's needed
245244 tk = self .get_token (token )
246245 # Usernames are permanent but can be disabled, so we expire based on time
You can’t perform that action at this time.
0 commit comments