fix: return proper {:ok, value} from Ash.Type.Atom.apply_constraints/2

This commit is contained in:
Zach Daniel 2024-06-10 10:43:14 -04:00
parent 4153ba7ef3
commit 46450f75e3

View file

@ -29,7 +29,7 @@ defmodule Ash.Type.Atom do
StreamData.member_of(one_of)
end
def apply_constraints(nil, _), do: :ok
def apply_constraints(nil, _), do: {:ok, nil}
def apply_constraints(value, constraints) do
errors =