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:
parent
13bd04f24a
commit
7502ce3e97
1 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue