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:
yui-knk 2018-06-20 12:40:59 +00:00
Родитель 158f223586
Коммит 248e076e5e
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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