Skip to content

Commit

Permalink
Remove dead code found by Elixir v1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Dec 5, 2024
1 parent 439752e commit 9ad37e6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/flame/runner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,9 @@ defmodule FLAME.Runner do
:ok = checkin(runner_pid, ref, trackable_pids)
{value, trackable_pids}

{kind, reason} ->
{:exit, reason} ->
:ok = checkin(runner_pid, ref, [])

case kind do
:exit -> exit(reason)
:error -> raise(reason)
:throw -> throw(reason)
end
exit(reason)
end
end

Expand Down Expand Up @@ -428,8 +423,6 @@ defmodule FLAME.Runner do
case remote_call(runner, backend_state, timeout, track_resources?, func) do
{:ok, value} -> value
{:exit, reason} -> exit(reason)
{:error, error} -> raise(error)
{:throw, val} -> throw(val)
end
end

Expand Down

0 comments on commit 9ad37e6

Please sign in to comment.