style(): small improvements
This commit is contained in:
@@ -71,9 +71,7 @@ def _validate_channel_config(
|
||||
raise ValidationError(
|
||||
{"config": "Channel config must be a JSON object."}
|
||||
)
|
||||
for required_field in REQUIRED_CHANNEL_CONFIG_FIELDS.get(
|
||||
channel_type, ()
|
||||
):
|
||||
for required_field in REQUIRED_CHANNEL_CONFIG_FIELDS.get(channel_type, ()):
|
||||
_required_str_config(config, required_field, channel_type)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user