1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Reindent case statements.

This commit is contained in:
Andy Brody 2014-07-08 01:30:03 -07:00
parent 13bd04f24a
commit 7502ce3e97

View file

@ -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