Remove unnecessary extra conditional
@@ -450,8 +450,7 @@ def validate_queue(queue):
if not sub_rule(sub_value):
raise InvalidQueueConfiguration(
'Invalid {}.{} value: {}'.format(field, sub_field, sub_value))
- else:
- if not rule(value):
+ elif not rule(value):
raise InvalidQueueConfiguration(
'Invalid {} value: {}'.format(field, value))
