]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Small change to code formatting.
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Sat, 30 Apr 2011 01:45:36 +0000 (02:45 +0100)
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Sat, 30 Apr 2011 01:45:36 +0000 (02:45 +0100)
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
str2bool.rb

index 5a52f250f871d1f821cf7bed7e85a05caf8f8ce6..f3a6d6cb65257bc2dc453b8321351e2830dd2ca6 100644 (file)
@@ -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