diff --git a/lib/philomena/images/tag_validator.ex b/lib/philomena/images/tag_validator.ex index 96a303e9..288b3ae4 100644 --- a/lib/philomena/images/tag_validator.ex +++ b/lib/philomena/images/tag_validator.ex @@ -58,7 +58,11 @@ defmodule Philomena.Images.TagValidator do cond do MapSet.size(intersection) > 0 -> - Enum.reduce(intersection, changeset, &add_error(&2, :tag_input, "contains forbidden tag `#{&1}'")) + Enum.reduce( + intersection, + changeset, + &add_error(&2, :tag_input, "contains forbidden tag `#{&1}'") + ) true -> changeset diff --git a/lib/philomena_web/controllers/topic/poll_controller.ex b/lib/philomena_web/controllers/topic/poll_controller.ex index 030d0b55..61cec7d9 100644 --- a/lib/philomena_web/controllers/topic/poll_controller.ex +++ b/lib/philomena_web/controllers/topic/poll_controller.ex @@ -27,7 +27,9 @@ defmodule PhilomenaWeb.Topic.PollController do {:ok, _poll} -> conn |> put_flash(:info, "Poll successfully updated.") - |> redirect(to: Routes.forum_topic_path(conn, :show, conn.assigns.forum, conn.assigns.topic)) + |> redirect( + to: Routes.forum_topic_path(conn, :show, conn.assigns.forum, conn.assigns.topic) + ) {:error, changeset} -> render(conn, "edit.html", changeset: changeset)