utils: remove redundant return statements from mount_mkdir

Remove return statement the program won't reach and simplify the
return logic with a return from an if and a fallback return
statement.
master
Alejandro Sirgo Rica 2024-03-26 10:48:58 +01:00
parent 55fadef718
commit 3aa76e4039
1 changed files with 1 additions and 3 deletions

View File

@ -39,10 +39,8 @@ def mount_mkdir(source, target):
if not os.path.ismount(target):
return mount(source, target)
else:
return True
return False
return True
def mount(source, target):