use credo style

This commit is contained in:
2023-02-04 17:28:53 -05:00
committed by oliviasculley
parent 30d3f76fe1
commit 5c05f3b6fe
18 changed files with 47 additions and 46 deletions

View File

@ -2,7 +2,6 @@ defmodule LokalWeb.EmailView do
@moduledoc """
A view for email-related helper functions
"""
alias LokalWeb.{Endpoint, HomeLive}
use LokalWeb, :view
alias LokalWeb.{Endpoint, HomeLive}
end

View File

@ -8,7 +8,7 @@ defmodule LokalWeb.ErrorView do
case error_path do
"404.html" -> dgettext("errors", "Not found")
"401.html" -> dgettext("errors", "Unauthorized")
_ -> dgettext("errors", "Internal Server Error")
_other_path -> dgettext("errors", "Internal Server Error")
end
render("error.html", %{error_string: error_string})