Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklayb committed Jan 21, 2024
1 parent 5a95f67 commit 439cea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/loupe/ecto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ if Code.ensure_loaded?(Ecto) do
dynamic([{^binding_name, binding}], field(binding, ^field) != ^unwrap(value, context))
end

defp apply_bounded_filter({:not, {:=, {binding_name, field}, :empty}}, context) do
defp apply_bounded_filter({:not, {:=, {binding_name, field}, :empty}}, _context) do
dynamic([{^binding_name, binding}], not is_nil(field(binding, ^field)))
end

defp apply_bounded_filter({:=, {binding_name, field}, :empty}, context) do
defp apply_bounded_filter({:=, {binding_name, field}, :empty}, _context) do
dynamic([{^binding_name, binding}], is_nil(field(binding, ^field)))
end

Expand Down

0 comments on commit 439cea4

Please sign in to comment.