From d7bbe4265d3d5e3ca5859860de70ccef0675fc92 Mon Sep 17 00:00:00 2001 From: Oleg Vivtash Date: Tue, 18 Aug 2015 10:37:42 +0300 Subject: [PATCH] Code prettified --- lib/fog/rackspace/requests/storage/get_object_https_url.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/fog/rackspace/requests/storage/get_object_https_url.rb b/lib/fog/rackspace/requests/storage/get_object_https_url.rb index 86e1a7f52..a6ad7a568 100644 --- a/lib/fog/rackspace/requests/storage/get_object_https_url.rb +++ b/lib/fog/rackspace/requests/storage/get_object_https_url.rb @@ -39,14 +39,11 @@ module Fog } temp_url_query.merge!(inline: true) if options[:inline] temp_url_query.merge!(filename: options[:filename]) if options[:filename] - q = temp_url_query.map do |param, val| - "#{CGI.escape(param.to_s)}=#{CGI.escape(val.to_s)}" - end.join('&') temp_url_options = { :scheme => options[:scheme] || @uri.scheme, :host => @uri.host, :path => object_path_escaped, - :query => q + :query => temp_url_query.map { |param, val| "#{CGI.escape(param.to_s)}=#{CGI.escape(val.to_s)}" }.join('&') } URI::Generic.build(temp_url_options).to_s end