Skip to content

Commit

Permalink
Replace then by anonymous function to fix the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
altuntasfatih committed Sep 28, 2022
1 parent d16d9ff commit 75c6a43
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
import Config
use Mix.Config

# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import Config
use Mix.Config
2 changes: 1 addition & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Config
use Mix.Config

config :dataloader, Dataloader.TestRepo,
hostname: "localhost",
Expand Down
4 changes: 2 additions & 2 deletions test/dataloader/ecto_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ defmodule Dataloader.EctoTest do

User
|> where(^Enum.to_list(args))
|> then(fn user ->
|> (fn user ->
if is_nil(sort_by) or is_nil(sort_order) do
user
else
order_by(user, {^sort_order, ^sort_by})
end
end)
end).()
end

defp query(queryable, _args, test_pid) do
Expand Down

0 comments on commit 75c6a43

Please sign in to comment.