From: Haelwenn (lanodan) Monnier Date: Tue, 17 Sep 2019 20:00:02 +0000 (+0200) Subject: docs/markdown.ex: do no print empty suggestions X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e0d8c8897e46d20039b4c0a383bca0192c5eb2ec;p=akkoma docs/markdown.ex: do no print empty suggestions --- diff --git a/lib/pleroma/docs/markdown.ex b/lib/pleroma/docs/markdown.ex index 58a42b323..d7ca97957 100644 --- a/lib/pleroma/docs/markdown.ex +++ b/lib/pleroma/docs/markdown.ex @@ -66,6 +66,8 @@ defmodule Pleroma.Docs.Markdown do defp print_suggestions(_file, nil), do: nil + defp print_suggestions(_file, ""), do: nil + defp print_suggestions(file, suggestions) do IO.write(file, "Suggestions:\n")