mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_ast.rb: Remove a needless line
`RubyVM::AST.parse_file` was fixed to raise `SyntaxError` by r63602. So this line is needless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
158f223586
commit
248e076e5e
1 changed files with 1 additions and 3 deletions
|
@ -63,9 +63,7 @@ class TestAst < Test::Unit::TestCase
|
|||
|
||||
def ast
|
||||
return @ast if defined?(@ast)
|
||||
ast = RubyVM::AST.parse_file(@path)
|
||||
raise "Syntax error: #{@path}" if ast.nil?
|
||||
@ast = ast
|
||||
@ast = RubyVM::AST.parse_file(@path)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Reference in a new issue