summaryrefslogtreecommitdiff
path: root/Hutch/Views/Settings
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-24 16:39:15 -0500
committerChristian Cleberg <[email protected]>2026-03-24 16:39:15 -0500
commit8da2f907d690a59124d9008c0d8e1e792133702b (patch)
tree79fcc86662155709fe2beb7b6559270254b96c01 /Hutch/Views/Settings
parent1f8a13e069ef5ebb7092803870d7152958ceb84e (diff)
downloadhutch-8da2f907d690a59124d9008c0d8e1e792133702b.tar.gz
hutch-8da2f907d690a59124d9008c0d8e1e792133702b.tar.bz2
hutch-8da2f907d690a59124d9008c0d8e1e792133702b.zip
fix: add nested comments to satisfy sonar rule swift:S1186
Diffstat (limited to 'Hutch/Views/Settings')
-rw-r--r--Hutch/Views/Settings/SettingsView.swift8
1 files changed, 6 insertions, 2 deletions
diff --git a/Hutch/Views/Settings/SettingsView.swift b/Hutch/Views/Settings/SettingsView.swift
index 30758a8..e90f4e3 100644
--- a/Hutch/Views/Settings/SettingsView.swift
+++ b/Hutch/Views/Settings/SettingsView.swift
@@ -99,7 +99,9 @@ struct SettingsView: View {
}
)
) {
- Button("Cancel", role: .cancel) {}
+ Button("Cancel", role: .cancel) {
+ // Alert dismissal is implicit; no additional action required.
+ }
Button(pendingDestructiveAction?.confirmationLabel ?? "Confirm", role: .destructive) {
guard let action = pendingDestructiveAction else { return }
pendingDestructiveAction = nil
@@ -608,7 +610,9 @@ private struct EditProfileSheet: View {
}
}
.alert("Remove Avatar?", isPresented: $isShowingRemoveAvatarConfirmation) {
- Button("Cancel", role: .cancel) {}
+ Button("Cancel", role: .cancel) {
+ // Alert dismissal is implicit; no additional action required.
+ }
Button("Remove Avatar", role: .destructive) {
Task {
await viewModel.removeAvatar()