Removed unnecessary setdefault() from CheckRegistry.register().

This commit is contained in:
Mariusz Felisiak 2018-02-26 14:54:55 +01:00 committed by Tim Graham
parent 8116e588db
commit 61596f40ad
1 changed files with 1 additions and 3 deletions

View File

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