Skip to content

Commit

Permalink
ran formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
benbot committed Oct 23, 2024
1 parent da216e1 commit 686411a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .recode.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
{Recode.Task.TestFileExt, []},
{Recode.Task.UnusedVariable, [active: false]}
]
]
]
1 change: 1 addition & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ config :logger, :console,
config :phoenix, :json_library, Jason

import_config "#{Mix.env()}.exs"

if Mix.env() == "dev" do
import_config "local.exs"
end
3 changes: 1 addition & 2 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ config :uro, Uro.Repo,
show_sensitive_data_on_connection_error: true,
pool_size: 10


redis_url = Helpers.get_env("REDIS_URL", nil)
config :uro, Redix, url: (if redis_url, do: redis_url, else: "redis://localhost:6379")
config :uro, Redix, url: if(redis_url, do: redis_url, else: "redis://localhost:6379")
1 change: 1 addition & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 2 additions & 1 deletion lib/uro/plug/ensure_user_not_locked_plug.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# lib/my_app_web/ensure_user_not_locked_plug.ex
defmodule Uro.EnsureUserNotLockedPlug do
alias Plug.Conn
alias Pow.{Config, Plug}
alias Pow.Config
alias Pow.Plug

@doc false
@spec init(Config.t()) :: atom()
Expand Down
3 changes: 1 addition & 2 deletions lib/uro/user_relations/identity_proof.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ defmodule Uro.UserRelations.IdentityProof do

@doc false
def changeset(identity_proof, attrs) do
identity_proof
|> cast(attrs, [:user_from_id, :user_to_id])
cast(identity_proof, attrs, [:user_from_id, :user_to_id])
end
end

0 comments on commit 686411a

Please sign in to comment.