chore(bridge_v2_api): remove misplaced handling code
This commit is contained in:
parent
ae760a4ca1
commit
10b2894b6e
|
@ -373,11 +373,6 @@ schema("/bridges_v2_probe") ->
|
|||
case emqx_bridge_v2:remove(BridgeType, BridgeName) of
|
||||
ok ->
|
||||
?NO_CONTENT;
|
||||
{error, {active_channels, Channels}} ->
|
||||
?BAD_REQUEST(
|
||||
{<<"Cannot delete bridge while there are active channels defined for this bridge">>,
|
||||
Channels}
|
||||
);
|
||||
{error, timeout} ->
|
||||
?SERVICE_UNAVAILABLE(<<"request timeout">>);
|
||||
{error, Reason} ->
|
||||
|
|
Loading…
Reference in New Issue