Skip to content

Commit

Permalink
Minor return statement fix in _compare_kernel_version()
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Dec 24, 2019
1 parent 3a87884 commit e86133e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ubuntucleaner/janitor/oldkernel_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ def _compare_kernel_version(self, version):
c1, c2 = self.current_kernel_version.split('-')
p1, p2 = version.split('-')
if c1 == p1:
if int(c2) > int(p2):
return True
else:
return False
return int(c2) > int(p2)
else:
return LooseVersion(c1) > LooseVersion(p1)

Expand Down

0 comments on commit e86133e

Please sign in to comment.