From 8da2f907d690a59124d9008c0d8e1e792133702b Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 24 Mar 2026 16:39:15 -0500 Subject: fix: add nested comments to satisfy sonar rule swift:S1186 --- Hutch/Views/Pastes/PasteDetailView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Hutch/Views/Pastes') diff --git a/Hutch/Views/Pastes/PasteDetailView.swift b/Hutch/Views/Pastes/PasteDetailView.swift index df3a8be..19cfd52 100644 --- a/Hutch/Views/Pastes/PasteDetailView.swift +++ b/Hutch/Views/Pastes/PasteDetailView.swift @@ -63,7 +63,9 @@ struct PasteDetailView: View { } } .alert("Delete Paste?", isPresented: $showDeleteConfirmation) { - Button("Cancel", role: .cancel) {} + Button("Cancel", role: .cancel) { + // Alert dismissal is implicit; no additional action required. + } Button("Delete", role: .destructive) { Task { if await viewModel?.deletePaste() == true { -- cgit v1.2.3