From a6cc93ead0de353054b1703d51bf7639bc61689a Mon Sep 17 00:00:00 2001 From: Ryan Fitzgerald Date: Sun, 3 Nov 2013 18:36:19 -0800 Subject: [PATCH] Simplify usage of ColorPrinter in ls -l --- lib/pry/commands/ls.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pry/commands/ls.rb b/lib/pry/commands/ls.rb index 4f53dd14..441138d8 100644 --- a/lib/pry/commands/ls.rb +++ b/lib/pry/commands/ls.rb @@ -327,9 +327,7 @@ class Pry end def format_value(value) - str = "" - Pry::ColorPrinter.pp(value, str) - str + Pry::ColorPrinter.pp(value, "") end # Add a new section to the output. Outputs nothing if the section would be empty.