Skip to content

Commit 6a09685

Browse files
lukebakkenLoisSotoLopez
authored andcommitted
Follow up to rabbitmq#14132
rabbitmq#14132 introduced a small bug in the JSON output that was caught by CI.
1 parent 77e30e3 commit 6a09685

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)