Skip to content

Commit

Permalink
fix: return proper {:ok, value} from `Ash.Type.Atom.apply_constrain…
Browse files Browse the repository at this point in the history
…ts/2`
  • Loading branch information
zachdaniel committed Jun 10, 2024
1 parent 4153ba7 commit 46450f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash/type/atom.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 46450f7

Please sign in to comment.