diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-17 22:00:02 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-17 23:05:26 +0200 |
commit | e0d8c8897e46d20039b4c0a383bca0192c5eb2ec (patch) | |
tree | d1ec7a4f53c0213847b4e8a9415867f845d8997c /lib/pleroma/docs/markdown.ex | |
parent | 50ec445b2c1e45b0d3b3a2016650f3262ed00e75 (diff) | |
download | pleroma-e0d8c8897e46d20039b4c0a383bca0192c5eb2ec.tar.gz |
docs/markdown.ex: do no print empty suggestions
Diffstat (limited to 'lib/pleroma/docs/markdown.ex')
-rw-r--r-- | lib/pleroma/docs/markdown.ex | 2 |
1 files changed, 2 insertions, 0 deletions
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") |