Fix warnings

This commit is contained in:
byte[] 2019-12-17 19:44:26 -05:00
parent 8cb3e33714
commit 2a6976c184
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ defmodule PhilomenaWeb.ImageLoader do
# Allow users to reverse the effect of hiding images,
# if desired
defp maybe_custom_hide(filters, %{id: id}, "1"),
defp maybe_custom_hide(filters, %{id: _id}, "1"),
do: filters
defp maybe_custom_hide(filters, %{id: id}, _param),

View file

@ -174,7 +174,7 @@ defmodule PhilomenaWeb.ImageView do
def hides_images?(conn), do: can?(conn, :hide, %Philomena.Images.Image{})
def hidden_toggle(%{assigns: %{current_user: nil}}, _route, _params), do: nil
def hidden_toggle(%{assigns: %{current_user: user}} = conn, route, params) do
def hidden_toggle(conn, route, params) do
render PhilomenaWeb.ImageView, "_hidden_toggle.html", route: route, params: params, conn: conn
end