From 0e5070c3562118c6573430007b282fe71b2915ff Mon Sep 17 00:00:00 2001 From: Marc Lennox Date: Sat, 18 Aug 2012 21:12:54 -0700 Subject: [PATCH] Syntax change to satisfy pull request --- lib/google/api_client/reference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/google/api_client/reference.rb b/lib/google/api_client/reference.rb index a1b82aa84..db1c704a0 100644 --- a/lib/google/api_client/reference.rb +++ b/lib/google/api_client/reference.rb @@ -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]