From 0206c410de7bd48d01d71e3ed8a683c3dd353af0 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 16 Dec 2020 09:27:44 -0500 Subject: [PATCH] format --- lib/philomena_web/controllers/report_controller.ex | 2 +- lib/philomena_web/controllers/tag/autocomplete_controller.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/controllers/report_controller.ex b/lib/philomena_web/controllers/report_controller.ex index 7f1ac907..92ec6117 100644 --- a/lib/philomena_web/controllers/report_controller.ex +++ b/lib/philomena_web/controllers/report_controller.ex @@ -47,7 +47,7 @@ defmodule PhilomenaWeb.ReportController do _falsy -> case Reports.create_report(reportable.id, reportable_type, attribution, report_params) do - {:ok, report} -> + {:ok, _report} -> conn |> put_flash( :info, diff --git a/lib/philomena_web/controllers/tag/autocomplete_controller.ex b/lib/philomena_web/controllers/tag/autocomplete_controller.ex index 0256c2cc..be0ce1ac 100644 --- a/lib/philomena_web/controllers/tag/autocomplete_controller.ex +++ b/lib/philomena_web/controllers/tag/autocomplete_controller.ex @@ -30,7 +30,7 @@ defmodule PhilomenaWeb.Tag.AutocompleteController do |> Elasticsearch.search_records(preload(Tag, :aliased_tag)) |> Enum.map(&(&1.aliased_tag || &1)) |> Enum.uniq_by(& &1.id) - |> Enum.filter(& &1.images_count > 3) + |> Enum.filter(&(&1.images_count > 3)) |> Enum.sort_by(&(-&1.images_count)) |> Enum.take(5) |> Enum.map(&%{label: "#{&1.name} (#{&1.images_count})", value: &1.name})