Skip to content

Commit 20f494a

Browse files
author
Austin Ziegler
committed
Yield is not a function call.
1 parent 1d3817e commit 20f494a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/net/ldap.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def search(args = {})
629629
if @open_connection
630630
@result = @open_connection.search(args) { |entry|
631631
result_set << entry if result_set
632-
yield(entry) if block_given?
632+
yield entry if block_given?
633633
}
634634
else
635635
@result = 0
@@ -639,7 +639,7 @@ def search(args = {})
639639
if (@result = conn.bind(args[:auth] || @auth)) == 0
640640
@result = conn.search(args) { |entry|
641641
result_set << entry if result_set
642-
yield(entry) if block_given?
642+
yield entry if block_given?
643643
}
644644
end
645645
ensure
@@ -1404,7 +1404,7 @@ def search(args = {})
14041404
case pdu.app_tag
14051405
when 4 # search-data
14061406
n_results += 1
1407-
yield(pdu.search_entry) if block_given?
1407+
yield pdu.search_entry if block_given?
14081408
when 19 # search-referral
14091409
if return_referrals
14101410
if block_given?

0 commit comments

Comments
 (0)