fix(emqx_bridge): don't try to handle what we don't understand

This commit is contained in:
Stefan Strigler 2023-11-13 14:06:31 +01:00
parent 0d33284672
commit 0b3645057d
1 changed files with 0 additions and 2 deletions

View File

@ -801,8 +801,6 @@ do_create_or_update_bridge(BridgeType, BridgeName, Conf, HttpStatusCode) ->
PreOrPostConfigUpdate =:= pre_config_update;
PreOrPostConfigUpdate =:= post_config_update
->
?BAD_REQUEST(map_to_json(redact(Reason)));
{error, Reason} ->
?BAD_REQUEST(map_to_json(redact(Reason)))
end.