From 9ad37e651c15a24ef1b832f7763dd271ab3eeec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 5 Dec 2024 14:32:38 +0100 Subject: [PATCH] Remove dead code found by Elixir v1.18 --- lib/flame/runner.ex | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/flame/runner.ex b/lib/flame/runner.ex index d67e17d..5dd2649 100644 --- a/lib/flame/runner.ex +++ b/lib/flame/runner.ex @@ -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 @@ -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