Removed unnecessary setdefault() from CheckRegistry.register().
This commit is contained in:
parent
8116e588db
commit
61596f40ad
|
@ -40,11 +40,9 @@ class CheckRegistry:
|
|||
# or
|
||||
registry.register(my_check, 'mytag', 'anothertag')
|
||||
"""
|
||||
kwargs.setdefault('deploy', False)
|
||||
|
||||
def inner(check):
|
||||
check.tags = tags
|
||||
checks = self.deployment_checks if kwargs['deploy'] else self.registered_checks
|
||||
checks = self.deployment_checks if kwargs.get('deploy') else self.registered_checks
|
||||
checks.add(check)
|
||||
return check
|
||||
|
||||
|
|
Loading…
Reference in New Issue