Address useless-return.

This commit is contained in:
Felix Fontein 2025-10-07 21:44:52 +02:00
parent e895ac35a3
commit 776f95f295
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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}