Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 7, 2024
1 parent 234f990 commit 9c59e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion znsocket/objects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def pop(self, index: int = -1) -> t.Any:
value = self.redis.lindex(self.key, index)
if value is None:
raise IndexError("pop index out of range")

pipeline = self.redis.pipeline(**self._pipeline_kwargs)
pipeline.lset(self.key, index, "__DELETED__")
pipeline.lrem(self.key, 0, "__DELETED__")
Expand Down

0 comments on commit 9c59e17

Please sign in to comment.