From: Adrien Thebo Date: Mon, 12 Aug 2013 18:51:36 +0000 (-0700) Subject: (maint) reindent case statement to match standard indentation X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1950b605fb7acaf055b922433a74c429794ee375;p=puppet-stdlib.git (maint) reindent case statement to match standard indentation --- diff --git a/lib/puppet/parser/functions/validate_slength.rb b/lib/puppet/parser/functions/validate_slength.rb index 259df5a..34dfcf2 100644 --- a/lib/puppet/parser/functions/validate_slength.rb +++ b/lib/puppet/parser/functions/validate_slength.rb @@ -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