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-04-29 18:46:13 -03:00
parent 07abd6c12e
commit 43c4a6d91f
5 changed files with 16 additions and 20 deletions

View File

@@ -114,8 +114,8 @@ def find_dnsconfig(module):
if _result["result"].get('idnsforwarders', None) is None:
_result["result"]['idnsforwarders'] = ['']
return _result["result"]
else:
module.fail_json(msg="Could not retrieve current DNS configuration.")
module.fail_json(msg="Could not retrieve current DNS configuration.")
return None