mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
Address useless-return.
This commit is contained in:
parent
e895ac35a3
commit
776f95f295
@ -420,7 +420,6 @@ disable=raw-checker-failed,
|
||||
use-dict-literal,
|
||||
use-list-literal,
|
||||
useless-object-inheritance,
|
||||
useless-return,
|
||||
# Cannot remove yet due to inadequacy of rules
|
||||
inconsistent-return-statements, # doesn't notice that fail_json() does not return
|
||||
|
||||
|
||||
@ -504,7 +504,7 @@ class SwarmManager(DockerBaseClass):
|
||||
unlock_key = self.get_unlock_key()
|
||||
self.swarm_info.update(unlock_key)
|
||||
except APIError:
|
||||
return
|
||||
pass
|
||||
|
||||
def get_unlock_key(self):
|
||||
default = {"UnlockKey": None}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user