Skip to content

Commit

Permalink
Fix credo warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
macifell committed Dec 19, 2023
1 parent 24f7698 commit a5c76b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ defmodule RecognizerWeb.Accounts.UserSettingsController do
plug :assign_email_and_password_changesets

def edit(conn, _params) do
cond do
Application.get_env(:recognizer, :redirect_url) ->
if Application.get_env(:recognizer, :redirect_url) do
redirect(conn, external: Application.get_env(:recognizer, :redirect_url))

true ->
else
render(conn, "edit.html")
end
end
Expand Down
2 changes: 2 additions & 0 deletions test/support/bigcommerce_test_helpers.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Recognizer.BigCommerceTestHelpers do
@moduledoc false

def ok_bigcommerce_response() do
body = Jason.encode!(%{data: [%{id: 1001}]})

Expand Down

0 comments on commit a5c76b8

Please sign in to comment.