diff options
author | Aleksei Magusev <lexmag@me.com> | 2019-05-17 02:06:07 +0200 |
---|---|---|
committer | Aleksei Magusev <lexmag@me.com> | 2019-05-17 02:06:07 +0200 |
commit | 7bdffe148f76d78991e1d2c57dbd24bb9ee10513 (patch) | |
tree | 4c31eae1acfbe595146bfab583707de2d516682b | |
parent | 10fd3164399c13da75f087783b6ebe9dd03ab3d7 (diff) | |
download | elixir-7bdffe148f76d78991e1d2c57dbd24bb9ee10513.tar.gz |
Remove unnecessary is_reference/1 check
-rw-r--r-- | lib/elixir/lib/task/supervised.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/task/supervised.ex b/lib/elixir/lib/task/supervised.ex index 3826342bb..f9b6e1cd5 100644 --- a/lib/elixir/lib/task/supervised.ex +++ b/lib/elixir/lib/task/supervised.ex @@ -34,7 +34,7 @@ defmodule Task.Supervised do _ = if mref, do: Process.demonitor(mref, [:flush]) send(owner_pid, {ref, invoke_mfa(owner, mfa)}) - {:DOWN, ^mref, _, _, reason} when is_reference(mref) -> + {:DOWN, ^mref, _, _, reason} -> exit({:shutdown, reason}) after # There is a race condition on this operation when working across |