diff --git a/lib/recognizer_web/controllers/accounts/user_settings_controller.ex b/lib/recognizer_web/controllers/accounts/user_settings_controller.ex index 239fe78..34d32bc 100644 --- a/lib/recognizer_web/controllers/accounts/user_settings_controller.ex +++ b/lib/recognizer_web/controllers/accounts/user_settings_controller.ex @@ -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 diff --git a/test/support/bigcommerce_test_helpers.ex b/test/support/bigcommerce_test_helpers.ex index e4ab9c5..38ed5cf 100644 --- a/test/support/bigcommerce_test_helpers.ex +++ b/test/support/bigcommerce_test_helpers.ex @@ -1,4 +1,6 @@ defmodule Recognizer.BigCommerceTestHelpers do + @moduledoc false + def ok_bigcommerce_response() do body = Jason.encode!(%{data: [%{id: 1001}]})