From fee0d030a89b0f9c9a2613d72949dc68e69ee876 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 24 Oct 2021 16:19:01 -0400 Subject: [PATCH] format --- lib/philomena_web/views/markdown_view.ex | 4 +++- lib/philomena_web/views/stat_view.ex | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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