summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/else.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/ast/else.rb')
-rw-r--r--lib/puppet/parser/ast/else.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast/else.rb b/lib/puppet/parser/ast/else.rb
index e76051372..affac625d 100644
--- a/lib/puppet/parser/ast/else.rb
+++ b/lib/puppet/parser/ast/else.rb
@@ -12,9 +12,8 @@ class Puppet::Parser::AST
# Evaluate the actual statements; this only gets called if
# our test was true matched.
- def evaluate(hash)
- scope = hash[:scope]
- return @statements.safeevaluate(:scope => scope)
+ def evaluate(scope)
+ return @statements.safeevaluate(scope)
end
end
end