fix: module type apply_constraints for nil fix (#1313)

This commit is contained in:
Roberts Guļāns 2024-07-14 16:51:21 +03:00 committed by GitHub
parent 04a7148ab1
commit 2c37e71d46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ defmodule Ash.Type.Module do
{:atomic, new_value}
end
def apply_constraints(nil, _), do: :ok
def apply_constraints(nil, _), do: {:ok, nil}
def apply_constraints(value, constraints) do
[]