[ruby/irb] Remove unnecessary condition
https://github.com/ruby/irb/commit/daffb8bfe5
This commit is contained in:
parent
55e2116f2c
commit
42fcbcc215
@ -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…
x
Reference in New Issue
Block a user