Skip to content

Commit 9daacd7

Browse files
authored
Refactor one (1) private function (#163)
1 parent 3d8199e commit 9daacd7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/mox.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -941,10 +941,7 @@ defmodule Mox do
941941

942942
# Find the pid of the actual caller
943943
defp caller_pids do
944-
case Process.get(:"$callers") do
945-
nil -> []
946-
pids when is_list(pids) -> pids
947-
end
944+
Process.get(:"$callers", [])
948945
end
949946

950947
## Ownership

0 commit comments

Comments
 (0)