diff options
| author | Christian Cleberg <[email protected]> | 2026-03-24 21:02:31 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-24 21:02:31 -0500 |
| commit | 24bb28a53d4c94633b6c6827bb04aeac8121b8b3 (patch) | |
| tree | 822254ebbb53028aca93dd43752d5d5f668ebd56 /HutchWidgetExtension | |
| parent | 94d0b581bbd2be7b63c07fe7f86d736daa96e1f9 (diff) | |
| download | hutch-24bb28a53d4c94633b6c6827bb04aeac8121b8b3.tar.gz hutch-24bb28a53d4c94633b6c6827bb04aeac8121b8b3.tar.bz2 hutch-24bb28a53d4c94633b6c6827bb04aeac8121b8b3.zip | |
chore: rename unused context params to _ in NeedsAttentionTimelineProvider
Diffstat (limited to 'HutchWidgetExtension')
| -rw-r--r-- | HutchWidgetExtension/NeedsAttentionWidget.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/HutchWidgetExtension/NeedsAttentionWidget.swift b/HutchWidgetExtension/NeedsAttentionWidget.swift index fff030f..0e177a7 100644 --- a/HutchWidgetExtension/NeedsAttentionWidget.swift +++ b/HutchWidgetExtension/NeedsAttentionWidget.swift @@ -7,7 +7,7 @@ struct NeedsAttentionEntry: TimelineEntry { } struct NeedsAttentionTimelineProvider: TimelineProvider { - func placeholder(in context: Context) -> NeedsAttentionEntry { + func placeholder(in _: Context) -> NeedsAttentionEntry { NeedsAttentionEntry( date: .now, snapshot: NeedsAttentionSnapshot( @@ -19,7 +19,7 @@ struct NeedsAttentionTimelineProvider: TimelineProvider { ) } - func getSnapshot(in context: Context, completion: @escaping (NeedsAttentionEntry) -> Void) { + func getSnapshot(in _: Context, completion: @escaping (NeedsAttentionEntry) -> Void) { completion( NeedsAttentionEntry( date: .now, @@ -28,7 +28,7 @@ struct NeedsAttentionTimelineProvider: TimelineProvider { ) } - func getTimeline(in context: Context, completion: @escaping (Timeline<NeedsAttentionEntry>) -> Void) { + func getTimeline(in _: Context, completion: @escaping (Timeline<NeedsAttentionEntry>) -> Void) { let refreshDate = Calendar.current.date(byAdding: .minute, value: 20, to: .now) ?? .now.addingTimeInterval(1200) let entry = NeedsAttentionEntry(date: .now, snapshot: NeedsAttentionSnapshotStore.load()) completion(Timeline(entries: [entry], policy: .after(refreshDate))) |
