Skip to content

Commit

Permalink
Improvement: None removed for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurav Sharma authored and Saurav Sharma committed Feb 17, 2024
1 parent 23b1b68 commit 8bf4390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_redis/client/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def expire(
version: Optional[int] = None,
client: Optional[Redis] = None,
) -> bool:
if (timeout is DEFAULT_TIMEOUT) or (timeout is None):
if timeout is DEFAULT_TIMEOUT:
timeout = self._backend.default_timeout # type: ignore

if client is None:
Expand Down

0 comments on commit 8bf4390

Please sign in to comment.