Skip to content

Commit 792ca51

Browse files
committed
fix: remove flawed optimization about is_nil: false
1 parent f32f63a commit 792ca51

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/ash/query/operator/is_nil.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ defmodule Ash.Query.Operator.IsNil do
1414
def new(nil, false), do: {:ok, false}
1515

1616
def new(left, right) do
17-
if right == false and not Ash.Expr.can_return_nil?(left) do
18-
{:known, true}
19-
else
20-
super(left, right)
21-
end
17+
super(left, right)
2218
end
2319

2420
@impl Ash.Query.Operator

0 commit comments

Comments
 (0)