Skip to content

Commit

Permalink
Added simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
WisdomPill committed Oct 20, 2024
1 parent 95df619 commit 17b4a50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions django_redis/client/herd.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def _is_expired(x, herd_timeout: int) -> bool:
return True
val = x + random.randint(1, herd_timeout)

if val >= herd_timeout:
return True
return False
return val >= herd_timeout


class HerdClient(DefaultClient):
Expand Down

0 comments on commit 17b4a50

Please sign in to comment.