Skip to content

Commit

Permalink
Merge pull request #1 from satoryu/tmaher_rubocop_updates
Browse files Browse the repository at this point in the history
Fix the bug in #278
  • Loading branch information
tmaher authored Aug 19, 2016
2 parents 8b8ae9b + 6564aab commit 6cff7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ def use_connection(args)
begin
conn = new_connection
result = conn.bind(args[:auth] || @auth)
return result unless result.code == Net::LDAP::ResultCodeSuccess
return result unless result.result_code == Net::LDAP::ResultCodeSuccess
yield conn
ensure
conn.close if conn
Expand Down

0 comments on commit 6cff7fa

Please sign in to comment.