1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Remove unnecessary condition

https://github.com/ruby/irb/commit/daffb8bfe5
This commit is contained in:
st0012 2022-09-30 23:14:10 +01:00 committed by git
parent 55e2116f2c
commit 42fcbcc215

View file

@ -203,12 +203,7 @@ class RubyLex
last_line = lines[line_index]&.byteslice(0, byte_pointer)
code += last_line if last_line
@tokens = self.class.ripper_lex_without_warning(code, context: context)
corresponding_token_depth = check_corresponding_token_depth(lines, line_index)
if corresponding_token_depth
corresponding_token_depth
else
nil
end
check_corresponding_token_depth(lines, line_index)
end
end
end