mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 21:43:02 +12:00
fix: fix bad evaluation case for operators
This commit is contained in:
parent
ebef8057c8
commit
8036c268d6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue