We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea47303 commit 9614effCopy full SHA for 9614eff
Tests/NavigatorTests/UITests/NavigatorTestHost/MemoryTracker.swift
@@ -52,12 +52,8 @@ import ReadiumNavigator
52
}
53
54
private func pollAllocations() {
55
- var deallocated = true
56
-
57
- refs.removeAll { ref in
58
- deallocated = deallocated && ref.isDeallocated
59
- return ref.isDeallocated
60
- }
+ refs.removeAll { $0.isDeallocated }
+ let deallocated = refs.isEmpty
61
62
if allDeallocated != deallocated {
63
allDeallocated = deallocated
0 commit comments