Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 16, 2024
1 parent eaecc04 commit d37ab3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion a_sync/primitives/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,9 @@ def __lt__(self, other: "_SmartFutureRef[T]") -> bool:
if strong_self is None:
return True
strong_other = other()
return False if strong_other is None else strong_self < strong_other
if strong_other is None:
return False
return strong_self < strong_other


class _PriorityQueueMixin(Generic[T]):
Expand Down

0 comments on commit d37ab3f

Please sign in to comment.