mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-18 12:52:37 +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-dict-literal,
|
||||||
use-list-literal,
|
use-list-literal,
|
||||||
useless-object-inheritance,
|
useless-object-inheritance,
|
||||||
useless-return,
|
|
||||||
# Cannot remove yet due to inadequacy of rules
|
# Cannot remove yet due to inadequacy of rules
|
||||||
inconsistent-return-statements, # doesn't notice that fail_json() does not return
|
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()
|
unlock_key = self.get_unlock_key()
|
||||||
self.swarm_info.update(unlock_key)
|
self.swarm_info.update(unlock_key)
|
||||||
except APIError:
|
except APIError:
|
||||||
return
|
pass
|
||||||
|
|
||||||
def get_unlock_key(self):
|
def get_unlock_key(self):
|
||||||
default = {"UnlockKey": None}
|
default = {"UnlockKey": None}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user