Skip to content

Commit

Permalink
Remove redundant case-of
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Nov 26, 2024
1 parent 00cf723 commit a86bd20
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/throttle/amoc_throttle_pool.erl
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
-spec start_link(amoc_throttle:name(), amoc_throttle_config:pool_config()) ->
supervisor:startlink_ret().
start_link(Name, PoolConfig) ->
case supervisor:start_link(?MODULE, {Name, PoolConfig}) of
{ok, Pid} ->
{ok, Pid};
Else ->
Else
end.
supervisor:start_link(?MODULE, {Name, PoolConfig}).

-spec init({amoc_throttle:name(), amoc_throttle_config:pool_config()}) ->
{ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
Expand Down

0 comments on commit a86bd20

Please sign in to comment.