summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-26 10:48:58 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-26 13:32:58 +0100
commit3aa76e403908c37e4f4f9989e9318bed96001e28 (patch)
tree4179bee408365f48105c44befc07688d7c07f955 /src
parent55fadef718711ad6ddfc3fc29380a4cf0dddc38e (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/utils/fs.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils/fs.py b/src/utils/fs.py
index 1015754..7e1d115 100644
--- a/src/utils/fs.py
+++ b/src/utils/fs.py
@@ -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):