From 3aa76e403908c37e4f4f9989e9318bed96001e28 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 26 Mar 2024 10:48:58 +0100 Subject: 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. --- src/utils/fs.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/utils') 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): -- cgit v1.2.3-18-g5258