From cc01bd9b04085271ef7d1f8156bbd1ca66aa50d6 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 5 Apr 2023 18:38:34 -0400 Subject: [PATCH] chore: fix invalid guard --- lib/ash/filter/filter.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash/filter/filter.ex b/lib/ash/filter/filter.ex index 54feb9b9..5ef68964 100644 --- a/lib/ash/filter/filter.ex +++ b/lib/ash/filter/filter.ex @@ -345,7 +345,7 @@ defmodule Ash.Filter do refs |> Enum.flat_map(fn %{attribute: attribute, relationship_path: relationship_path} - when is_atom(attribute) || is_binary(attribute) -> + when is_atom(attribute) or is_binary(attribute) -> [ NoSuchAttributeOrRelationship.exception( attribute_or_relationship: attribute,