Skip to content

Commit e8e0e28

Browse files
committed
Avoid magic number in success case of ldap search
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
1 parent 9adc587 commit e8e0e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def search(args = {})
680680
if return_result_set
681681
unless @result.nil?
682682
case @result.result_code
683-
when 0
683+
when ResultStrings.key("Success")
684684
# everything good
685685
result_set
686686
when ResultStrings.key("Size Limit Exceeded")

0 commit comments

Comments
 (0)