diff --git a/lib/mox.ex b/lib/mox.ex index e81e964..3a6f4d9 100644 --- a/lib/mox.ex +++ b/lib/mox.ex @@ -941,10 +941,7 @@ defmodule Mox do # Find the pid of the actual caller defp caller_pids do - case Process.get(:"$callers") do - nil -> [] - pids when is_list(pids) -> pids - end + Process.get(:"$callers", []) end ## Ownership