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 = {})
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?
You can’t perform that action at this time.
0 commit comments