mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: return proper {:ok, value}
from Ash.Type.Atom.apply_constraints/2
This commit is contained in:
parent
4153ba7ef3
commit
46450f75e3
1 changed files with 1 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue