From 95ad1ff3555191f4ed8c8367cf13435940b1bc75 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 24 Mar 2015 13:22:40 +0100 Subject: [PATCH] Removed not needed lines. --- lib/user_agent.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/user_agent.rb b/lib/user_agent.rb index 8762b38dc..9b8e1ba9b 100644 --- a/lib/user_agent.rb +++ b/lib/user_agent.rb @@ -268,6 +268,7 @@ returns end request end + def self.process(response, uri, count, params, options) if !response return Result.new( @@ -284,7 +285,6 @@ returns :success => false, :code => response.code, ) - when Net::HTTPClientError return Result.new( :error => "Client Error: #{response.inspect}!", @@ -301,7 +301,6 @@ returns raise "Too many redirections for the original URL, halting." if count <= 0 url = response['location'] return get(url, params, options, count - 1) - when Net::HTTPOK data = nil if options[:json] && !options[:jsonParseDisable] && response.body