From 7502ce3e97f31fffad4ba1a822d2f39c9befb37a Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Tue, 8 Jul 2014 01:30:03 -0700 Subject: [PATCH] Reindent case statements. --- lib/restclient/payload.rb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/restclient/payload.rb b/lib/restclient/payload.rb index a036139..356a315 100644 --- a/lib/restclient/payload.rb +++ b/lib/restclient/payload.rb @@ -25,12 +25,12 @@ module RestClient def has_file?(params) params.any? do |_, v| case v - when Hash - has_file?(v) - when Array - has_file_array?(v) - else - v.respond_to?(:path) && v.respond_to?(:read) + when Hash + has_file?(v) + when Array + has_file_array?(v) + else + v.respond_to?(:path) && v.respond_to?(:read) end end end @@ -38,12 +38,12 @@ module RestClient def has_file_array?(params) params.any? do |v| case v - when Hash - has_file?(v) - when Array - has_file_array?(v) - else - v.respond_to?(:path) && v.respond_to?(:read) + when Hash + has_file?(v) + when Array + has_file_array?(v) + else + v.respond_to?(:path) && v.respond_to?(:read) end end end