mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Remove unnecessary else
This commit is contained in:
parent
825458ecf1
commit
a4241facdb
@ -908,8 +908,7 @@ def check_state_result(running):
|
||||
if isinstance(rets, dict) and 'result' in rets:
|
||||
if rets['result'] is False:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
return True
|
||||
|
||||
for ret in rets:
|
||||
if not isinstance(ret, dict):
|
||||
|
Loading…
Reference in New Issue
Block a user