Skip to content

Commit 62759e4

Browse files
committed
Reorder clauses
1 parent 08cc301 commit 62759e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/elixir/lib/module.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,11 +2243,6 @@ defmodule Module do
22432243
value
22442244
end
22452245

2246-
defp valid_dialyzer_attribute?({key, fun_arities}) when is_atom(key) do
2247-
(key == :nowarn_function or valid_dialyzer_attribute?(key)) and
2248-
function_arity_list?(List.wrap(fun_arities))
2249-
end
2250-
22512246
defp function_arity_list?(fun_arities) do
22522247
is_list(fun_arities) and
22532248
:lists.all(
@@ -2259,6 +2254,11 @@ defmodule Module do
22592254
)
22602255
end
22612256

2257+
defp valid_dialyzer_attribute?({key, fun_arities}) when is_atom(key) do
2258+
(key == :nowarn_function or valid_dialyzer_attribute?(key)) and
2259+
function_arity_list?(List.wrap(fun_arities))
2260+
end
2261+
22622262
defp valid_dialyzer_attribute?(attr) do
22632263
:lists.member(
22642264
attr,

0 commit comments

Comments
 (0)