From ffb08980c3daa61e09e791ad72606f7b6d1a72df Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Mon, 10 Mar 2025 19:57:32 +0100 Subject: [PATCH] Refactor one (1) private function --- lib/mox.ex | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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