diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:14:15 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:14:15 +0000 |
commit | 82171c3406a790ac9740c439e2aafce21853e0a0 (patch) | |
tree | 71139d061c87fbde7aefc12d9364339df6d228b8 /lib/custodian/protocoltest/ssl.rb | |
parent | 1383d0f44f8ce524c297714bd288f95a548107ed (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.rb | 6 |
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 |