Skip to content

Commit df478ca

Browse files
author
Clifton McIntosh
committed
Update check for empty list of fields
1 parent a42b7d6 commit df478ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/graphql_markdown/markdown_helpers.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ defmodule GraphqlMarkdown.MarkdownHelpers do
154154
end
155155

156156
case return_values do
157-
"" -> ""
158-
_ -> "\n " <> Enum.join(return_values, "\n ")
157+
[_ | _] -> "\n " <> Enum.join(return_values, "\n ")
158+
_ -> ""
159159
end
160160
end
161161
end

0 commit comments

Comments
 (0)