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/ldap.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/ldap.rb')
-rw-r--r-- | lib/custodian/protocoltest/ldap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/ldap.rb b/lib/custodian/protocoltest/ldap.rb index ba8b442..aee09e0 100644 --- a/lib/custodian/protocoltest/ldap.rb +++ b/lib/custodian/protocoltest/ldap.rb @@ -133,7 +133,7 @@ module Custodian end @error = "LDAP server test failed against '#{@host}' with username '#{@ldap_user}' and password '#{@ldap_pass}'" - return false + false end |