Syntax change to satisfy pull request
This commit is contained in:
1 parent
6795eeece9
commit
0e5070c356
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user