Fix or disable pylint's no-else-return.

Fixed usage of `else` right after return, or disable pylint
evaluation when it would play against code readability.
This commit is contained in:
Rafael Guterres Jeffman
2021-05-25 14:13:42 -03:00
parent 07abd6c12e
commit 43c4a6d91f
5 changed files with 16 additions and 20 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ def find_hbacsvcgroup(module, name):
msg="There is more than one hbacsvcgroup '%s'" % (name))
elif len(_result["result"]) == 1:
return _result["result"][0]
return None