Syntax change to satisfy pull request
This commit is contained in:
parent
6795eeece9
commit
0e5070c356
|
@ -63,7 +63,7 @@ module Google
|
|||
self.headers = options[:headers] || {}
|
||||
if options[:media]
|
||||
self.media = options[:media]
|
||||
upload_type = self.parameters.find{|a| ['uploadType', 'upload_type'].include?(a[0])}[1]
|
||||
upload_type = self.parameters.find { |(k, _)| ['uploadType', 'upload_type'].include?(k) }.last
|
||||
case upload_type
|
||||
when "media"
|
||||
if options[:body] || options[:body_object]
|
||||
|
|
Loading…
Reference in New Issue