Removing possible calls to Object#to_a.

This commit is contained in:
Austin Ziegler 2010-03-20 23:08:22 -04:00 committed by Kaspar Schiess
parent 7c3f2427a0
commit afe43a5e58
3 changed files with 10 additions and 5 deletions

View file

@ -376,7 +376,7 @@ class Filter
if @right == "*"
l = entry[@left] and l.length > 0
else
l = entry[@left] and l = l.to_a and l.index(@right)
l = entry[@left] and l = Array(l) and l.index(@right)
end
else
raise LdapError.new( "unknown filter type in match: #{@op}" )