summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2009-11-04 17:36:43 -0800
committerJames Turnbull <james@lovedthanlost.net>2009-11-05 13:49:25 +1100
commitb1c57e9c15b1b7f079dc99dfc79e57fe3e5682e0 (patch)
treec6155fd40c1194ae5cced58f1a2448799fcb1d77 /lib/puppet/parser/ast
parent50e9c98c3f7a54be48cc363696c2361a53e9e750 (diff)
downloadpuppet-b1c57e9c15b1b7f079dc99dfc79e57fe3e5682e0.tar.gz
puppet-b1c57e9c15b1b7f079dc99dfc79e57fe3e5682e0.tar.xz
puppet-b1c57e9c15b1b7f079dc99dfc79e57fe3e5682e0.zip
Al Hoang's patch for #2781, removing obsolete when/: syntax
This is just Al's patch with removal of trailing ";"s. Signed-off-by: Markus Roberts <Markus@reality.com>
Diffstat (limited to 'lib/puppet/parser/ast')
-rw-r--r--lib/puppet/parser/ast/boolean_operator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/ast/boolean_operator.rb b/lib/puppet/parser/ast/boolean_operator.rb
index 160e0e69e..89725d73b 100644
--- a/lib/puppet/parser/ast/boolean_operator.rb
+++ b/lib/puppet/parser/ast/boolean_operator.rb
@@ -20,14 +20,14 @@ class Puppet::Parser::AST
# return result
# lazy evaluate right operand
case @operator
- when "and";
+ when "and"
if Puppet::Parser::Scope.true?(lval)
rval = @rval.safeevaluate(scope)
Puppet::Parser::Scope.true?(rval)
else # false and false == false
false
end
- when "or";
+ when "or"
if Puppet::Parser::Scope.true?(lval)
true
else