From 0e13a7e6a0b0f9847b2b998c20018aabaafab3b1 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 6 Dec 2019 18:08:37 -0500 Subject: [PATCH] fix warnings --- lib/philomena_web/plugs/admin_counters_plug.ex | 1 - lib/philomena_web/views/app_view.ex | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/philomena_web/plugs/admin_counters_plug.ex b/lib/philomena_web/plugs/admin_counters_plug.ex index fe581cb9..24462f29 100644 --- a/lib/philomena_web/plugs/admin_counters_plug.ex +++ b/lib/philomena_web/plugs/admin_counters_plug.ex @@ -5,7 +5,6 @@ defmodule PhilomenaWeb.AdminCountersPlug do plug PhilomenaWeb.AdminCountersPlug """ - alias Plug.Conn alias Philomena.DuplicateReports alias Philomena.Reports alias Philomena.UserLinks diff --git a/lib/philomena_web/views/app_view.ex b/lib/philomena_web/views/app_view.ex index 2c3a0b95..0ee1e69f 100644 --- a/lib/philomena_web/views/app_view.ex +++ b/lib/philomena_web/views/app_view.ex @@ -114,8 +114,8 @@ defmodule PhilomenaWeb.AppView do |> to_string() end - defp text_or_na(text), do: text defp text_or_na(nil), do: "N/A" + defp text_or_na(text), do: text # todo: make ip a real link def link_to_ip(ip) do