Skip to content

Commit d124444

Browse files
committed
[COASTAL-1246] Reset Loop Cleanup
1 parent 6dad461 commit d124444

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)