Skip to content

Commit

Permalink
fix:flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Dec 15, 2022
1 parent e252191 commit 109f19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fakeredis/commands_mixins/sortedset_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def zadd(self, key, *args):
update = update or (param_val['gt'] and ((item_name in zset and zset.get(item_name) < item_score)
or (not param_val['xx'] and item_name not in zset)))
update = update or (param_val['lt'] and ((item_name in zset and zset.get(item_name) > item_score)
or (not param_val['xx'] and item_name not in zset)))
or (not param_val['xx'] and item_name not in zset)))

if update:
if zset.add(item_name, item_score):
Expand Down

0 comments on commit 109f19b

Please sign in to comment.