mirror of https://git.48k.eu/ogclient
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
parent
55fadef718
commit
3aa76e4039
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue