summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-30 02:45:36 +0100
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-30 02:45:36 +0100
commit4b2a0a9e1f214085de5d9d1820ed5c94cb26325b (patch)
tree028a5f8473ad7a11cb6a1610cc259926768b40c8
parent20a8892c094d2dc5193f495261524c523d45e725 (diff)
downloadpuppet-stdlib-4b2a0a9e1f214085de5d9d1820ed5c94cb26325b.tar.gz
puppet-stdlib-4b2a0a9e1f214085de5d9d1820ed5c94cb26325b.tar.bz2
Small change to code formatting.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-rw-r--r--str2bool.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/str2bool.rb b/str2bool.rb
index 5a52f25..f3a6d6c 100644
--- a/str2bool.rb
+++ b/str2bool.rb
@@ -23,11 +23,10 @@ module Puppet::Parser::Functions
# This is how undef looks like in Puppet ...
# We yield false in this case.
#
- when /^$/, '' then false
- when /^(1|t|y|true|yes)$/ then true
- when /^(0|f|n|false|no)$/ then false
- # This is not likely to happen ...
- when /^(undef|undefined)$/ then false
+ when /^$/, '' then false # Empty string will be false ...
+ when /^(1|t|y|true|yes)$/ then true
+ when /^(0|f|n|false|no)$/ then false
+ when /^(undef|undefined)$/ then false # This is not likely to happen ...
else
raise(Puppet::ParseError, 'str2bool(): Unknown type of boolean given')
end