Skip to content

Commit 9614eff

Browse files
committed
Minor fix
1 parent ea47303 commit 9614eff

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Tests/NavigatorTests/UITests/NavigatorTestHost/MemoryTracker.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,8 @@ import ReadiumNavigator
5252
}
5353

5454
private func pollAllocations() {
55-
var deallocated = true
56-
57-
refs.removeAll { ref in
58-
deallocated = deallocated && ref.isDeallocated
59-
return ref.isDeallocated
60-
}
55+
refs.removeAll { $0.isDeallocated }
56+
let deallocated = refs.isEmpty
6157

6258
if allDeallocated != deallocated {
6359
allDeallocated = deallocated

0 commit comments

Comments
 (0)