Do not create a Block node where not needed
This commit is contained in:
parent
134e4357e1
commit
96a73e5448
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ module Mutant
|
||||||
#
|
#
|
||||||
def root(node)
|
def root(node)
|
||||||
root = root_ast
|
root = root_ast
|
||||||
root.body = @scope_class.new(1,root.name,Rubinius::AST::Block.new(1, [ node ]))
|
root.body = @scope_class.new(1,root.name,node)
|
||||||
Rubinius::AST::Script.new(root)
|
Rubinius::AST::Script.new(root)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue