chore(bridge_v2_api): remove misplaced handling code

This commit is contained in:
Kjell Winblad 2023-11-01 11:31:17 +01:00
parent ae760a4ca1
commit 10b2894b6e
1 changed files with 0 additions and 5 deletions

View File

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