From 8fca87859c3d855d2f38b2ca4aa0afc8d7be5d2f Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 30 Apr 2020 17:26:34 -0400 Subject: [PATCH] format --- lib/philomena/images/tag_validator.ex | 6 +++++- lib/philomena_web/controllers/topic/poll_controller.ex | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) 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)