Closed kscheff closed 2 years ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Hi, I don't understand. If services
is empty, then
!services!.contains { ds in s.identifier == ds.identifier }
in
let initialSize = services!.count
services = services! + mockServices
// Filter all device services that match given list (if set).
.filter { serviceUUIDs?.contains($0.uuid) ?? true }
// Filter those of them, that are not already in discovered services.
.filter { s in !services!
.contains { ds in s.identifier == ds.identifier }
|| initialSize == 0
}
...
returns true
...
Fix issue #68 not returning entire list when no filter for discovering services, characteristics