summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/tcp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:09:46 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:09:46 +0000
commit891b720013f06f092f6be82adad95e5551c696b6 (patch)
treebffba558147d68d951f403caa2b6396e4faf5f29 /lib/custodian/protocoltest/tcp.rb
parent3a96cc957dbd97c6ffeaea42f738e7c35b4acbc7 (diff)
Do not use parentheses for method calls with no arguments.
This is neater. Flagged by rubocop
Diffstat (limited to 'lib/custodian/protocoltest/tcp.rb')
-rw-r--r--lib/custodian/protocoltest/tcp.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb
index 9ca2180..24a05be 100644
--- a/lib/custodian/protocoltest/tcp.rb
+++ b/lib/custodian/protocoltest/tcp.rb
@@ -153,8 +153,8 @@ module Custodian
#
# Get the timeout period.
#
- settings = Custodian::Settings.instance()
- period = settings.timeout()
+ settings = Custodian::Settings.instance
+ period = settings.timeout
#
# Perform the DNS lookups of the specified name.
@@ -265,8 +265,8 @@ module Custodian
#
# Get the timeout period for this test.
#
- settings = Custodian::Settings.instance()
- period = settings.timeout()
+ settings = Custodian::Settings.instance
+ period = settings.timeout
begin
timeout(period) do
@@ -283,7 +283,7 @@ module Custodian
read.gsub!(/[\n\r]/, "")
end
- socket.close()
+ socket.close
if ( banner.nil? )
@error = nil