fix: fix bad evaluation case for operators

This commit is contained in:
Zach Daniel 2022-07-20 15:12:37 -04:00
parent ebef8057c8
commit 8036c268d6

View file

@ -50,7 +50,7 @@ defmodule Ash.Query.Operator.Basic do
if unquote(opts[:no_nils]) do if unquote(opts[:no_nils]) do
def evaluate(%{left: left, right: right}) do def evaluate(%{left: left, right: right}) do
if is_nil(left) || is_nil(right) do if is_nil(left) || is_nil(right) do
nil {:known, nil}
else else
# delegate to function to avoid dialyzer warning # delegate to function to avoid dialyzer warning
# that this can only ever be one value (for each module we define) # that this can only ever be one value (for each module we define)