From 520d789ef5e4fc6d4810fc94624d105879b4c554 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 23 Nov 2012 23:37:14 +0000 Subject: Return "false" rather than nil. Just for neatness. --- lib/custodian/protocoltest/http.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian') diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 8de768d..475b335 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -131,7 +131,7 @@ module Custodian @content = c.body_str rescue Curl::Err::TimeoutError @error = "Timed out fetching page." - return nil + return false rescue => x @error = "Exception: #{x}" return false @@ -158,7 +158,7 @@ module Custodian end # - # Done? + # All done. # true end -- cgit v1.2.1