mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 21:13:10 +12:00
chore: use nils_distinct?
This commit is contained in:
parent
3667760717
commit
85c92ce9cc
1 changed files with 4 additions and 3 deletions
|
@ -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?}",
|
||||
|
|
Loading…
Reference in a new issue