No need for #===()

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
This commit is contained in:
Yorick Peterse 2011-10-06 14:59:48 +02:00
parent 42e943733b
commit bdd0759c7e
1 changed files with 2 additions and 2 deletions

View File

@ -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