Skip to content

Commit 0c0c287

Browse files
authored
Remove dead code found by Elixir v1.18 (#71)
1 parent e64ad84 commit 0c0c287

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/flame/runner.ex

+2-9
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,9 @@ defmodule FLAME.Runner do
135135
:ok = checkin(runner_pid, ref, trackable_pids)
136136
{value, trackable_pids}
137137

138-
{kind, reason} ->
138+
{:exit, reason} ->
139139
:ok = checkin(runner_pid, ref, [])
140-
141-
case kind do
142-
:exit -> exit(reason)
143-
:error -> raise(reason)
144-
:throw -> throw(reason)
145-
end
140+
exit(reason)
146141
end
147142
end
148143

@@ -428,8 +423,6 @@ defmodule FLAME.Runner do
428423
case remote_call(runner, backend_state, timeout, track_resources?, func) do
429424
{:ok, value} -> value
430425
{:exit, reason} -> exit(reason)
431-
{:error, error} -> raise(error)
432-
{:throw, val} -> throw(val)
433426
end
434427
end
435428

0 commit comments

Comments
 (0)