зеркало из https://github.com/github/ruby.git
ext/ripper/lib/ripper/lexer.rb: Consistently use `Array#push`
instead of <<. All the other callsites use `push`.
This commit is contained in:
Родитель
ef8c5161b4
Коммит
8877dbe400
|
@ -161,7 +161,7 @@ class Ripper
|
||||||
def on_heredoc_beg(tok)
|
def on_heredoc_beg(tok)
|
||||||
@stack.push @buf
|
@stack.push @buf
|
||||||
buf = []
|
buf = []
|
||||||
@buf << buf
|
@buf.push buf
|
||||||
@buf = buf
|
@buf = buf
|
||||||
@buf.push Elem.new([lineno(), column()], __callee__, tok, state())
|
@buf.push Elem.new([lineno(), column()], __callee__, tok, state())
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче