chore: remove unused code path
This commit is contained in:
parent
261d4bd84c
commit
133c0ad619
@ -127,9 +127,7 @@ execute_method(<<"guild.start">>, #{<<"guild_id">> := GuildIdBin}) ->
|
|||||||
case guild_manager:start_or_lookup(GuildId, ?GUILD_LOOKUP_TIMEOUT) of
|
case guild_manager:start_or_lookup(GuildId, ?GUILD_LOOKUP_TIMEOUT) of
|
||||||
{ok, _Pid} -> true;
|
{ok, _Pid} -> true;
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
throw({error, <<"guild_start_error:", (error_term_to_binary(Reason))/binary>>});
|
throw({error, <<"guild_start_error:", (error_term_to_binary(Reason))/binary>>})
|
||||||
Other ->
|
|
||||||
throw({error, <<"guild_start_error:", (error_term_to_binary(Other))/binary>>})
|
|
||||||
end;
|
end;
|
||||||
execute_method(<<"guild.stop">>, #{<<"guild_id">> := GuildIdBin}) ->
|
execute_method(<<"guild.stop">>, #{<<"guild_id">> := GuildIdBin}) ->
|
||||||
GuildId = validation:snowflake_or_throw(<<"guild_id">>, GuildIdBin),
|
GuildId = validation:snowflake_or_throw(<<"guild_id">>, GuildIdBin),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user