diff --git a/lib/philomena_web/views/markdown_view.ex b/lib/philomena_web/views/markdown_view.ex index 3ecae0ac..d139d798 100644 --- a/lib/philomena_web/views/markdown_view.ex +++ b/lib/philomena_web/views/markdown_view.ex @@ -8,6 +8,8 @@ defmodule PhilomenaWeb.MarkdownView do def required?(required) when required == false, do: nil def required?(_), do: true - def add_classes(base_classes, new_classes) when is_binary(new_classes), do: "#{base_classes} #{new_classes}" + def add_classes(base_classes, new_classes) when is_binary(new_classes), + do: "#{base_classes} #{new_classes}" + def add_classes(base_classes, _), do: base_classes end diff --git a/lib/philomena_web/views/stat_view.ex b/lib/philomena_web/views/stat_view.ex index 9cdf4bc1..d6871cc6 100644 --- a/lib/philomena_web/views/stat_view.ex +++ b/lib/philomena_web/views/stat_view.ex @@ -8,7 +8,10 @@ defmodule PhilomenaWeb.StatView do { %{"doc_count" => min_docs}, %{"doc_count" => max_docs} - } = Enum.min_max_by(data, & &1["doc_count"], fn -> {%{"doc_count" => 0}, %{"doc_count" => 0}} end) + } = + Enum.min_max_by(data, & &1["doc_count"], fn -> + {%{"doc_count" => 0}, %{"doc_count" => 0}} + end) graph_width = 950 graph_height = 475