From 5f8f11c0ee899aa66aecf4be06bd9a13e3853d56 Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Thu, 13 Mar 2014 10:01:05 -0400 Subject: [PATCH] minor: formatting. --- lib/httparty.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/httparty.rb b/lib/httparty.rb index b96789b..1f6c20e 100644 --- a/lib/httparty.rb +++ b/lib/httparty.rb @@ -183,8 +183,8 @@ module HTTParty # open_timeout 10 # end def open_timeout(t) - raise ArgumentError, 'open_timeout must be an integer or float' unless t && (t.is_a?(Integer) || t.is_a?(Float)) - default_options[:open_timeout] = t + raise ArgumentError, 'open_timeout must be an integer or float' unless t && (t.is_a?(Integer) || t.is_a?(Float)) + default_options[:open_timeout] = t end # Allows setting a default read_timeout for all HTTP calls in seconds