Skip to content

Commit

Permalink
change list comprehension on for loop (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemIsmagilov authored Jun 9, 2024
1 parent 51fadf4 commit c831003
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aiomcache/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ async def _multi_get( # type: ignore[misc]
if not keys:
return {}, {}

[self._validate_key(key) for key in keys]
for key in keys:
self._validate_key(key)

if len(set(keys)) != len(keys):
raise ClientException('duplicate keys passed to multi_get')

Expand Down

0 comments on commit c831003

Please sign in to comment.