Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Ubensee <[email protected]>
  • Loading branch information
tkilias and tomuben authored Aug 29, 2023
1 parent 9d14a2e commit 4ecbf7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _should_we_send(self):
return result

def is_ready_to_stop(self):
result = (self._finished and self._needs_to_send_for_peer) or not self._needs_to_send_for_peer
result = self._finished or not self._needs_to_send_for_peer
self._logger.debug("is_ready_to_stop", finished=self._finished, is_ready_to_stop=result)
return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _should_we_send(self):
return result

def is_ready_to_stop(self):
return (self._finished and self._needs_to_send_for_peer) or not self._needs_to_send_for_peer
return self._finished or not self._needs_to_send_for_peer


class RegisterPeerSenderFactory():
Expand Down

0 comments on commit 4ecbf7b

Please sign in to comment.