Use a Set to track DNs searched for

This commit is contained in:
Matt Todd 2015-01-15 13:41:11 -08:00
Родитель 909da53b87
Коммит 09e05a67d0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -37,8 +37,8 @@ module GitHub
# track groups found
found = Hash.new
# track DNs searched for (so we don't repeat searches)
searched = []
# track all DNs searched for (so we don't repeat searches)
searched = Set.new
# if this is a posixGroup, return members immediately (no nesting)
uids = member_uids(group)