Remove else because of early return

This commit is contained in:
Lucas Noki 2020-01-25 02:12:10 +01:00
parent 035e4ce6ae
commit c3e9bcc147

View File

@ -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)