Skip to content

Commit

Permalink
Merge 8474222 into ddb5107
Browse files Browse the repository at this point in the history
  • Loading branch information
tallysmartins committed May 28, 2018
2 parents ddb5107 + 8474222 commit 19e8d58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Used by "mix format"
[
inputs: ["mix.exs", "lib/elixir_bench/{benchmarks,github}/**/*.{ex,exs}", "{config,test}/**/*.{ex,exs}"],
#inputs: ["mix.exs", "lib/elixir_bench/**/*.{ex,exs}", "{config,test}/**/*.{ex,exs}"],
inputs: ["mix.exs", "lib/elixir_bench/**/*.{ex,exs}", "{config,test}/**/*.{ex,exs}"],
#inputs: ["mix.exs","lib/elixir_bench_web/**/*.{ex,exs}", "lib/elixir_bench/**/*.{ex,exs}", "{config,test}/**/*.{ex,exs}"],
#inputs: ["mix.exs","{config,test,lib}/**/*.{ex,exs}"],
locals_without_parens: [
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir_bench/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule ElixirBench.Application do
# Start the Ecto repository
supervisor(ElixirBench.Repo, []),
# Start the endpoint when the application starts
supervisor(ElixirBenchWeb.Endpoint, []),
supervisor(ElixirBenchWeb.Endpoint, [])
# Start your own worker by calling: ElixirBench.Worker.start_link(arg1, arg2, arg3)
# worker(ElixirBench.Worker, [arg1, arg2, arg3]),
]
Expand Down
1 change: 0 additions & 1 deletion lib/elixir_bench/repos/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ defmodule ElixirBench.Repos.Repo do
import Ecto.Changeset
alias ElixirBench.Repos.Repo


schema "repos" do
field :name, :string
field :owner, :string
Expand Down
4 changes: 2 additions & 2 deletions lib/elixir_bench/repos/repos.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule ElixirBench.Repos do

def fetch_repo_by_slug(slug) do
parse_slug(slug, fn owner, name ->
Repo.fetch(where(Repos.Repo, [owner: ^owner, name: ^name]))
Repo.fetch(where(Repos.Repo, owner: ^owner, name: ^name))
end)
end

Expand All @@ -28,7 +28,7 @@ defmodule ElixirBench.Repos do

def fetch_repo_id_by_slug(slug) do
parse_slug(slug, fn owner, name ->
Repo.fetch(from r in Repos.Repo, where: [owner: ^owner, name: ^name], select: r.id)
Repo.fetch(from(r in Repos.Repo, where: [owner: ^owner, name: ^name], select: r.id))
end)
end

Expand Down

0 comments on commit 19e8d58

Please sign in to comment.