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:
parent
55e2116f2c
commit
42fcbcc215
1 changed files with 1 additions and 6 deletions
|
@ -203,12 +203,7 @@ class RubyLex
|
||||||
last_line = lines[line_index]&.byteslice(0, byte_pointer)
|
last_line = lines[line_index]&.byteslice(0, byte_pointer)
|
||||||
code += last_line if last_line
|
code += last_line if last_line
|
||||||
@tokens = self.class.ripper_lex_without_warning(code, context: context)
|
@tokens = self.class.ripper_lex_without_warning(code, context: context)
|
||||||
corresponding_token_depth = check_corresponding_token_depth(lines, line_index)
|
check_corresponding_token_depth(lines, line_index)
|
||||||
if corresponding_token_depth
|
|
||||||
corresponding_token_depth
|
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue