From 1ee68103ec79825499657b0d6ad4d97ce299f13c Mon Sep 17 00:00:00 2001 From: James Cox Date: Wed, 9 Jan 2019 10:30:14 -0500 Subject: [PATCH] Multilines should use string#join rather than concat << --- lib/awesome_print/formatters/hash_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awesome_print/formatters/hash_formatter.rb b/lib/awesome_print/formatters/hash_formatter.rb index 6f6925c..c29bb63 100644 --- a/lib/awesome_print/formatters/hash_formatter.rb +++ b/lib/awesome_print/formatters/hash_formatter.rb @@ -32,7 +32,7 @@ module AwesomePrint end def multiline_hash - "{\n" << printable_hash.join(",\n") << "\n#{outdent}}" + ["{\n", printable_hash.join(",\n"), "\n#{outdent}}"].join end def simple_hash