summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdrien Thebo <git@somethingsinistral.net>2013-08-12 11:51:36 -0700
committerAdrien Thebo <git@somethingsinistral.net>2013-08-12 12:55:46 -0700
commit1950b605fb7acaf055b922433a74c429794ee375 (patch)
treed303bfe6d6256030679f402b36bf700e93f95421 /lib
parentb41883933c1dbf1a3c9fa7fce65e273246b474ee (diff)
downloadpuppet-stdlib-1950b605fb7acaf055b922433a74c429794ee375.tar.gz
puppet-stdlib-1950b605fb7acaf055b922433a74c429794ee375.tar.bz2
(maint) reindent case statement to match standard indentation
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/validate_slength.rb18
1 files changed, 9 insertions, 9 deletions
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