Skip to content
Snippets Groups Projects
Commit a5e8f626 authored by Daniel Silverstone's avatar Daniel Silverstone
Browse files

_platform/linux.py: Simplify return statement


The linter dislikes an if/return/else/return where it can be
simplified to a return of the if condition.

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 9ba6adca
Branches
Tags
No related merge requests found
......@@ -111,8 +111,4 @@ class Linux(Platform):
except subprocess.CalledProcessError:
output = ''
if output == 'root':
return True
else:
return False
return output == 'root'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment