]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(maint) reindent case statement to match standard indentation
authorAdrien Thebo <git@somethingsinistral.net>
Mon, 12 Aug 2013 18:51:36 +0000 (11:51 -0700)
committerAdrien Thebo <git@somethingsinistral.net>
Mon, 12 Aug 2013 19:55:46 +0000 (12:55 -0700)
lib/puppet/parser/functions/validate_slength.rb

index 259df5a122fbea546a729cae0e91e057db74e7e8..34dfcf283ea517dabec194cabfa2ceeaab64eccc 100644 (file)
@@ -58,16 +58,16 @@ module Puppet::Parser::Functions
     end
 
     case input
-      when String
-        validator.call(input)
-      when Array
-        input.each_with_index do |arg, pos|
-          if arg.is_a?(String)
-            validator.call(arg)
-          else
-            raise Puppet::ParseError, "validate_slength(): Expected element at array position #{pos} to be a String, got a #{arg.class}"
-          end
+    when String
+      validator.call(input)
+    when Array
+      input.each_with_index do |arg, pos|
+        if arg.is_a?(String)
+          validator.call(arg)
+        else
+          raise Puppet::ParseError, "validate_slength(): Expected element at array position #{pos} to be a String, got a #{arg.class}"
         end
+      end
     end
   end
 end