Skip to content

Commit 5df912b

Browse files
authored
linting changes with Xcode 26.4 (#597)
1 parent 0284c43 commit 5df912b

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

LoopFollow/Contact/ContactImageUpdater.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,18 @@ class ContactImageUpdater {
119119
private func getIncludedFields(for contactType: ContactType) -> [ContactType] {
120120
var included: [ContactType] = []
121121
if Storage.shared.contactTrend.value == .include,
122-
Storage.shared.contactTrendTarget.value == contactType {
122+
Storage.shared.contactTrendTarget.value == contactType
123+
{
123124
included.append(.Trend)
124125
}
125126
if Storage.shared.contactDelta.value == .include,
126-
Storage.shared.contactDeltaTarget.value == contactType {
127+
Storage.shared.contactDeltaTarget.value == contactType
128+
{
127129
included.append(.Delta)
128130
}
129131
if Storage.shared.contactIOB.value == .include,
130-
Storage.shared.contactIOBTarget.value == contactType {
132+
Storage.shared.contactIOBTarget.value == contactType
133+
{
131134
included.append(.IOB)
132135
}
133136
return included

LoopFollow/LiveActivity/LALivenessMarker.swift

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
//
2-
// LALivenessMarker.swift
3-
// LoopFollow
4-
//
5-
// Created by Philippe Achkar on 2026-04-01.
6-
// Copyright © 2026 Jon Fawcett. All rights reserved.
7-
//
8-
1+
// LoopFollow
2+
// LALivenessMarker.swift
93

104
import SwiftUI
115

@@ -24,4 +18,4 @@ struct LALivenessMarker: View {
2418
private var markerID: String {
2519
"\(seq)-\(producedAt.timeIntervalSince1970)"
2620
}
27-
}
21+
}

LoopFollow/LiveActivity/LALivenessStore.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
//
2-
// LALivenessStore.swift
3-
// LoopFollow
4-
//
5-
// Created by Philippe Achkar on 2026-04-01.
6-
// Copyright © 2026 Jon Fawcett. All rights reserved.
7-
//
8-
1+
// LoopFollow
2+
// LALivenessStore.swift
93

104
import Foundation
115

LoopFollow/LiveActivity/LiveActivityManager.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ final class LiveActivityManager {
150150
message: "[LA] foreground restart: current=nil (old activity not bound locally), ending all existing LAs before restart"
151151
)
152152
current = nil
153-
153+
154154
Task {
155155
for activity in Activity<GlucoseLiveActivityAttributes>.activities {
156156
await activity.end(nil, dismissalPolicy: .immediate)
@@ -178,7 +178,7 @@ final class LiveActivityManager {
178178
}
179179
}
180180
}
181-
181+
182182
@objc private func handleBackgroundAudioFailed() {
183183
guard Storage.shared.laEnabled.value, current != nil else { return }
184184
// The background audio session has permanently failed — the app will lose its
@@ -188,7 +188,7 @@ final class LiveActivityManager {
188188
Storage.shared.laRenewBy.value = Date().timeIntervalSince1970
189189
refreshFromCurrentState(reason: "audio-session-failed")
190190
}
191-
191+
192192
private func shouldRestartBecauseExtensionLooksStuck() -> Bool {
193193
guard Storage.shared.laEnabled.value else { return false }
194194
guard !dismissedByUser else { return false }
@@ -554,7 +554,7 @@ final class LiveActivityManager {
554554
highMgdl: Storage.shared.highLine.value,
555555
)
556556
GlucoseSnapshotStore.shared.save(snapshot)
557-
//WatchConnectivityManager.shared.send(snapshot: snapshot)
557+
// WatchConnectivityManager.shared.send(snapshot: snapshot)
558558

559559
// LA update: gated on LA being active, snapshot having changed, and activities enabled.
560560
guard Storage.shared.laEnabled.value, !dismissedByUser else { return }

0 commit comments

Comments
 (0)