chore: fix dialyzer

This commit is contained in:
Zach Daniel 2021-07-16 20:09:40 -04:00
parent 03e5ae4a7a
commit e6010816c3

View file

@ -130,11 +130,7 @@ defmodule Ash.Resource.Transformers.SetTypes do
Ash.Type.array_constraints(type) Ash.Type.array_constraints(type)
), ),
{:ok, item_constraints} <- validate_item_constraints(type, constraints) do {:ok, item_constraints} <- validate_item_constraints(type, constraints) do
if item_constraints do
{:ok, Keyword.put(new_constraints, :items, item_constraints)} {:ok, Keyword.put(new_constraints, :items, item_constraints)}
else
{:ok, new_constraints}
end
end end
type -> type ->