diff --git a/.credo.exs b/.credo.exs index a986fd09..fd0b1164 100644 --- a/.credo.exs +++ b/.credo.exs @@ -117,7 +117,7 @@ # {Credo.Check.Refactor.CondStatements, []}, {Credo.Check.Refactor.CyclomaticComplexity, false}, - {Credo.Check.Refactor.FunctionArity, []}, + {Credo.Check.Refactor.FunctionArity, [max_arity: 9]}, {Credo.Check.Refactor.LongQuoteBlocks, []}, {Credo.Check.Refactor.MapInto, []}, {Credo.Check.Refactor.MatchInCondition, []}, diff --git a/lib/join.ex b/lib/join.ex index 90d809d2..543d4ff9 100644 --- a/lib/join.ex +++ b/lib/join.ex @@ -289,14 +289,7 @@ defmodule AshPostgres.Join do from(row in query, as: ^0) end - query = - case query do - %{__ash_bindings__: ash_bindings} -> - ash_bindings - - _ -> - AshPostgres.DataLayer.default_bindings(query, destination) - end + query = AshPostgres.DataLayer.default_bindings(query, destination) {:ok, order_by, query} = AshPostgres.Sort.sort(query, sort, query.__ash_bindings__.resource, [], 0, :return)