Remove else because of early return
This commit is contained in:
parent
035e4ce6ae
commit
c3e9bcc147
@ -117,7 +117,6 @@ class SwapModule(AbstractModule):
|
|||||||
self._swap_location_check()
|
self._swap_location_check()
|
||||||
if self.swap_file is None:
|
if self.swap_file is None:
|
||||||
return
|
return
|
||||||
else:
|
|
||||||
disable_swapfile = "sudo swapoff {} && ".format(self.swap_file) + \
|
disable_swapfile = "sudo swapoff {} && ".format(self.swap_file) + \
|
||||||
"sudo rm {}".format(self.swap_file)
|
"sudo rm {}".format(self.swap_file)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user