diff --git a/lib/syntax_tree/formatter.rb b/lib/syntax_tree/formatter.rb index 6efad8d8..c52e45ad 100644 --- a/lib/syntax_tree/formatter.rb +++ b/lib/syntax_tree/formatter.rb @@ -43,10 +43,10 @@ def initialize( end def self.format(source, node) - formatter = new(source, []) - node.format(formatter) - formatter.flush - formatter.output.join + q = new(source, []) + q.format(node) + q.flush + q.output.join end def format(node, stackable: true)