Yield is not a function call.

This commit is contained in:
Austin Ziegler 2010-03-27 14:48:06 -04:00
parent 1d3817e007
commit 20f494a875

View file

@ -629,7 +629,7 @@ class Net::LDAP
if @open_connection if @open_connection
@result = @open_connection.search(args) { |entry| @result = @open_connection.search(args) { |entry|
result_set << entry if result_set result_set << entry if result_set
yield(entry) if block_given? yield entry if block_given?
} }
else else
@result = 0 @result = 0
@ -639,7 +639,7 @@ class Net::LDAP
if (@result = conn.bind(args[:auth] || @auth)) == 0 if (@result = conn.bind(args[:auth] || @auth)) == 0
@result = conn.search(args) { |entry| @result = conn.search(args) { |entry|
result_set << entry if result_set result_set << entry if result_set
yield(entry) if block_given? yield entry if block_given?
} }
end end
ensure ensure
@ -1404,7 +1404,7 @@ class Net::LDAP::Connection #:nodoc:
case pdu.app_tag case pdu.app_tag
when 4 # search-data when 4 # search-data
n_results += 1 n_results += 1
yield(pdu.search_entry) if block_given? yield pdu.search_entry if block_given?
when 19 # search-referral when 19 # search-referral
if return_referrals if return_referrals
if block_given? if block_given?