Skip to content

Commit

Permalink
Fix linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jan 4, 2021
1 parent 1a3357c commit 8e8ee1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PyFunceble/utils/version.py
Expand Up @@ -217,11 +217,13 @@ def compare(version_number: int, upstream_number: int) -> Optional[bool]:
Compare and provides the result of the comparison.
"""

# pylint: disable=too-many-return-statements

# ORD A ==> 65 ==> 650
if version_number > 650 and upstream_number < 650:
if upstream_number < 650 < version_number:
return True

if version_number < 650 and upstream_number > 650:
if version_number < 650 < upstream_number:
return False

if version_number > 650 and upstream_number > 650:
Expand Down

0 comments on commit 8e8ee1b

Please sign in to comment.