summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/branch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/ast/branch.rb')
-rw-r--r--lib/puppet/parser/ast/branch.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast/branch.rb b/lib/puppet/parser/ast/branch.rb
index c0fa0da30..0be6ca018 100644
--- a/lib/puppet/parser/ast/branch.rb
+++ b/lib/puppet/parser/ast/branch.rb
@@ -23,9 +23,7 @@ class Puppet::Parser::AST
super(arghash)
# Create the hash, if it was not set at initialization time.
- unless defined?(@children)
- @children = []
- end
+ @children = [] unless defined?(@children)
# Verify that we only got valid AST nodes.
@children.each { |child|