chore: use nils_distinct?

This commit is contained in:
Zach Daniel 2024-08-05 11:01:16 -04:00
parent 3667760717
commit 85c92ce9cc

View file

@ -661,9 +661,10 @@ defmodule Ash.EmbeddableType do
other -> to_string(other)
end
if nils_distinct? do
" with `nil` values considered distinct"
end
nils_distinct? =
if nils_distinct? do
" with `nil` values considered distinct"
end
{:error,
message: "items must be unique on #{type} with keys %{keys}#{nils_distinct?}",