summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/ssl.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:14:15 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:14:15 +0000
commit3acb2e1be6ddeb421efbd1b3598c1ed547d1b38b (patch)
treeb07562ee35bcdfa714e906c40886168a80436bb9 /lib/custodian/protocoltest/ssl.rb
parent5a64aa7f443625305701f4db1e16340a87cb0b76 (diff)
Avoid redudent returns.
The last expression of a method is the return value. So: def foo; false ; end Is the same as: def foo; return false; end
Diffstat (limited to 'lib/custodian/protocoltest/ssl.rb')
-rw-r--r--lib/custodian/protocoltest/ssl.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb
index 67af348..9f65712 100644
--- a/lib/custodian/protocoltest/ssl.rb
+++ b/lib/custodian/protocoltest/ssl.rb
@@ -19,7 +19,7 @@ class SSLCheck
# This is a helper for console-debugging.
def verbose( msg )
- return(msg)
+ (msg)
end
#
@@ -186,7 +186,7 @@ class SSLCheck
s.close if s.respond_to?(:close) and !s.closed?
end
- return @certificate
+ @certificate
end
#
@@ -232,7 +232,7 @@ class SSLCheck
s.close if s.respond_to?(:close) and !s.closed?
end
- return false
+ false
end
def verify_subject