Skip to content

Commit

Permalink
Linter cheer
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Mar 9, 2024
1 parent 5beb945 commit ebc4399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rfswarm_agent/rfswarm_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,12 +573,12 @@ def findlibraries_new(self):
def higher_version(self, versiona, versionb):
lversiona = [int(v) for v in versiona.split(".")]
lversionb = [int(v) for v in versionb.split(".")]
for i in range(max(len(lversiona),len(lversionb))):
for i in range(max(len(lversiona), len(lversionb))):
v1 = lversiona[i] if i < len(lversiona) else 0
v2 = lversionb[i] if i < len(lversionb) else 0
if v1 > v2:
return versiona
elif v1 <v2:
elif v1 < v2:
return versionb
return versiona

Expand Down

0 comments on commit ebc4399

Please sign in to comment.