Removing possible calls to Object#to_a.
This commit is contained in:
parent
7c3f2427a0
commit
afe43a5e58
3 changed files with 10 additions and 5 deletions
|
@ -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}" )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue