diff options
| author | Christian Cleberg <[email protected]> | 2026-04-03 15:47:34 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-03 15:47:34 -0500 |
| commit | 236a22553d5cb9e07b3115c03864c882e0c41b77 (patch) | |
| tree | f96a5abf8786ef18d35bee3f7c76851df46fc426 /Hutch/Views/Tickets/TicketListView.swift | |
| parent | 4f35ef40bf86471d2000097d590b6e830731fd39 (diff) | |
| download | hutch-2.10.2.tar.gz hutch-2.10.2.tar.bz2 hutch-2.10.2.zip | |
chore: add explanatory comments to all intentional empty closuresv2.10.2
Diffstat (limited to 'Hutch/Views/Tickets/TicketListView.swift')
| -rw-r--r-- | Hutch/Views/Tickets/TicketListView.swift | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Hutch/Views/Tickets/TicketListView.swift b/Hutch/Views/Tickets/TicketListView.swift index 4a48377..21e806c 100644 --- a/Hutch/Views/Tickets/TicketListView.swift +++ b/Hutch/Views/Tickets/TicketListView.swift @@ -25,8 +25,8 @@ struct TicketListView: View { init( tracker: TrackerSummary, - onTrackerUpdated: @escaping (TrackerSummary) -> Void = { _ in }, - onTrackerDeleted: @escaping (TrackerSummary) -> Void = { _ in } + onTrackerUpdated: @escaping (TrackerSummary) -> Void = { _ in /* no-op: default for callers that don't handle this event */ }, + onTrackerDeleted: @escaping (TrackerSummary) -> Void = { _ in /* no-op: default for callers that don't handle this event */ } ) { self._tracker = State(initialValue: tracker) self.onTrackerUpdated = onTrackerUpdated @@ -123,7 +123,9 @@ struct TicketListView: View { } } .alert("Delete Tracker?", isPresented: $showDeleteTrackerConfirmation) { - Button("Cancel", role: .cancel) {} + Button("Cancel", role: .cancel) { + // no-op: .cancel role handles alert dismissal + } Button("Delete", role: .destructive) { guard let trackerManagementViewModel else { return } Task { |
