Skip to content

Commit 8e1f29e

Browse files
authored
Merge pull request #570 from tidepool-org/cameron/COASTAL-1246-reset-loop-cleanup
[COASTAL-1246] Reset Loop Cleanup
2 parents 6dad461 + d124444 commit 8e1f29e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Loop/Managers/LoopAppManager.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,14 @@ class LoopAppManager: NSObject {
427427
}
428428

429429
private func resetLoop() {
430-
deviceDataManager.pluginManager.availableSupports.enumerated().forEach { index, supportUI in
430+
deviceDataManager.pluginManager.availableSupports.forEach { supportUI in
431431
supportUI.loopWillReset()
432-
433-
if index == deviceDataManager.pluginManager.availableSupports.count - 1 {
434-
resetLoopDocuments()
435-
resetLoopUserDefaults()
436-
}
437-
432+
}
433+
434+
resetLoopDocuments()
435+
resetLoopUserDefaults()
436+
437+
deviceDataManager.pluginManager.availableSupports.forEach { supportUI in
438438
supportUI.loopDidReset()
439439
}
440440
}

0 commit comments

Comments
 (0)