Skip to content

Commit 821d542

Browse files
committed
fix warning
1 parent 38b8950 commit 821d542

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/elixir_ls_utils/test/support/mix_test.case.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ defmodule ElixirLS.Utils.MixTest.Case do
8989

9090
defmacro in_fixture(dir, which, block) do
9191
module = inspect(__CALLER__.module)
92-
function = Atom.to_string(elem(__CALLER__.function, 0))
92+
function = case __CALLER__.function do
93+
{f, _a} -> Atom.to_string(f)
94+
nil -> nil
95+
end
9396
tmp = Path.join(module, function)
9497

9598
quote do

0 commit comments

Comments
 (0)