Skip to content

Commit 5ebf279

Browse files
lukebakkenmergify[bot]
authored andcommitted
Follow up to #14132
#14132 introduced a small bug in the JSON output that was caught by CI. (cherry picked from commit 33cb21e)
1 parent 2eb2100 commit 5ebf279

File tree

1 file changed

+2
-0
lines changed
  • deps/rabbitmq_cli/lib/rabbitmq/cli/formatters

1 file changed

+2
-0
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/formatters/json.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ defmodule RabbitMQ.CLI.Formatters.Json do
9191
"Ref(#{inspect(data)})"
9292
end
9393

94+
defp convert_erlang_strings([]), do: []
95+
9496
defp convert_erlang_strings(data) when is_list(data) do
9597
try do
9698
case :unicode.characters_to_binary(data, :utf8) do

0 commit comments

Comments
 (0)