summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/openproxy.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
commite716a49dabe2c086a97e2d8b3cffe5cf369ad026 (patch)
treee7e98125f89941db4c9d0f48f2df9c410467a3d8 /lib/custodian/protocoltest/openproxy.rb
parentaf2ee063abea8235a8cbd1448533e4f4fbc0d0af (diff)
Removed spaces inside parenthesis.
Diffstat (limited to 'lib/custodian/protocoltest/openproxy.rb')
-rw-r--r--lib/custodian/protocoltest/openproxy.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/protocoltest/openproxy.rb b/lib/custodian/protocoltest/openproxy.rb
index 04fe833..4beaaca 100644
--- a/lib/custodian/protocoltest/openproxy.rb
+++ b/lib/custodian/protocoltest/openproxy.rb
@@ -29,7 +29,7 @@ module Custodian
#
# Constructor
#
- def initialize( line )
+ def initialize(line)
#
# Save the line
@@ -39,7 +39,7 @@ module Custodian
#
# Save the target
#
- @host = line.split( /\s+/)[0]
+ @host = line.split(/\s+/)[0]
#
# Is this test inverted?
@@ -84,7 +84,7 @@ module Custodian
period = settings.timeout
begin
- timeout( period ) do
+ timeout(period) do
begin
c = Curl::Easy.new
c.follow_location = true
@@ -121,7 +121,7 @@ module Custodian
# A this point we've either had an exception, or we've
# got a result.
#
- if ( @status.to_i == 200 )
+ if (@status.to_i == 200)
return true
else
@error = "Proxy fetch of http://google.com/ via #{@host} failed"