Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Mar 14, 2023
1 parent a7e62ca commit 89e7ab1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_current_speed(self, direct):
"""
if not self.lt_status or self.get_status() not in [Status.DLSTATUS_DOWNLOADING, Status.DLSTATUS_SEEDING]:
return 0
elif direct == UPLOAD:
if direct == UPLOAD:
return self.lt_status.upload_rate
return self.lt_status.download_rate

Expand All @@ -93,7 +93,7 @@ def get_current_payload_speed(self, direct):
"""
if not self.lt_status or self.get_status() not in [Status.DLSTATUS_DOWNLOADING, Status.DLSTATUS_SEEDING]:
return 0
elif direct == UPLOAD:
if direct == UPLOAD:
return self.lt_status.upload_payload_rate
return self.lt_status.download_payload_rate

Expand Down

0 comments on commit 89e7ab1

Please sign in to comment.