Skip to content

Commit

Permalink
chore: credo/dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Nov 16, 2023
1 parent 39754d1 commit ae90b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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, []},
Expand Down
9 changes: 1 addition & 8 deletions lib/join.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae90b66

Please sign in to comment.