Skip to content

Commit 4cf2b86

Browse files
committed
Fix lint warning for unnecessary else block.
1 parent 4d20284 commit 4cf2b86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def run_as_root(*args, **kwargs):
2929
"""A helper for run that invokes sudo when unprivileged"""
3030
if os.geteuid() != 0:
3131
return run("sudo", *args, **kwargs)
32-
else:
33-
return run(*args, **kwargs)
32+
return run(*args, **kwargs)
3433

3534
def create_disk(image, disk_type, fs_type, size):
3635
"""Create a disk image, with a filesystem on it"""

0 commit comments

Comments
 (0)