File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ def search(args = {})
629
629
if @open_connection
630
630
@result = @open_connection . search ( args ) { |entry |
631
631
result_set << entry if result_set
632
- yield ( entry ) if block_given?
632
+ yield entry if block_given?
633
633
}
634
634
else
635
635
@result = 0
@@ -639,7 +639,7 @@ def search(args = {})
639
639
if ( @result = conn . bind ( args [ :auth ] || @auth ) ) == 0
640
640
@result = conn . search ( args ) { |entry |
641
641
result_set << entry if result_set
642
- yield ( entry ) if block_given?
642
+ yield entry if block_given?
643
643
}
644
644
end
645
645
ensure
@@ -1404,7 +1404,7 @@ def search(args = {})
1404
1404
case pdu . app_tag
1405
1405
when 4 # search-data
1406
1406
n_results += 1
1407
- yield ( pdu . search_entry ) if block_given?
1407
+ yield pdu . search_entry if block_given?
1408
1408
when 19 # search-referral
1409
1409
if return_referrals
1410
1410
if block_given?
You can’t perform that action at this time.
0 commit comments