docs/markdown.ex: do no print empty suggestions

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-09-17 22:00:02 +02:00
parent 50ec445b2c
commit e0d8c8897e
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE

View 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")