From 8311f7c91bf53a2b4a414b72a70a820125d7b561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Wojtasik?= Date: Mon, 13 Jun 2022 09:20:08 +0200 Subject: [PATCH] Handle not generated one call functions --- lib/gradient/elixir_checker.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/gradient/elixir_checker.ex b/lib/gradient/elixir_checker.ex index 76979c42..2b54b424 100644 --- a/lib/gradient/elixir_checker.ex +++ b/lib/gradient/elixir_checker.ex @@ -106,6 +106,9 @@ defmodule Gradient.ElixirChecker do end def all_vars_generated?(vars) do - Enum.all?(vars, fn {:var, anno, _} -> :erl_anno.generated(anno) end) + Enum.all?(vars, fn + {:var, anno, _} -> :erl_anno.generated(anno) + _ -> false + end) end end