docs/markdown.ex: do no print empty suggestions
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 20:00:02 +0000 (22:00 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 21:05:26 +0000 (23:05 +0200)
lib/pleroma/docs/markdown.ex

index 58a42b32377d361d392cee6c383145a558e3be62..d7ca979572e0c57fee85f8a2feafd01815336d80 100644 (file)
@@ -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")