Browse Source

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

Stefan Strigler 2 years ago
parent
commit
0b3645057d
1 changed files with 0 additions and 2 deletions
  1. 0 2
      apps/emqx_bridge/src/emqx_bridge_v2_api.erl

+ 0 - 2
apps/emqx_bridge/src/emqx_bridge_v2_api.erl

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