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 | 3acb2e1be6ddeb421efbd1b3598c1ed547d1b38b (patch) | |
| tree | b07562ee35bcdfa714e906c40886168a80436bb9 /lib/custodian/protocoltest/ssl.rb | |
| parent | 5a64aa7f443625305701f4db1e16340a87cb0b76 (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  | 
