From bdd0759c7ec2efb88614beeb58480337e65ea705 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 6 Oct 2011 14:59:48 +0200 Subject: [PATCH] No need for #===() Signed-off-by: Yorick Peterse --- lib/pry/pry_instance.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry/pry_instance.rb b/lib/pry/pry_instance.rb index d4684c26..e8fe2493 100644 --- a/lib/pry/pry_instance.rb +++ b/lib/pry/pry_instance.rb @@ -303,7 +303,7 @@ class Pry eval_string.force_encoding(val.encoding) end - if Pry.config.indent === true + if Pry.config.indent val = @indent.indent(val) end @@ -427,7 +427,7 @@ class Pry # @param [String] current_prompt The prompt to use for input. # @return [String] The next line of input. def readline(current_prompt="> ") - if Pry.config.indent === true + if Pry.config.indent current_prompt += @indent.stack[-1] || '' end