summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/functions/defined.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/defined.rb')
-rw-r--r--lib/puppet/parser/functions/defined.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/defined.rb b/lib/puppet/parser/functions/defined.rb
index 4e369ae48..b25368ccc 100644
--- a/lib/puppet/parser/functions/defined.rb
+++ b/lib/puppet/parser/functions/defined.rb
@@ -8,13 +8,13 @@ Puppet::Parser::Functions::newfunction(:defined, :type => :rvalue, :doc => "Dete
result = false
vals.each do |val|
case val
- when String:
+ when String
# For some reason, it doesn't want me to return from here.
if Puppet::Type.type(val) or finddefine(val) or findclass(val)
result = true
break
end
- when Puppet::Parser::Resource::Reference:
+ when Puppet::Parser::Resource::Reference
if findresource(val.to_s)
result = true
break