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/Repositories/FileTreeView.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/Repositories/FileTreeView.swift')
| -rw-r--r-- | Hutch/Views/Repositories/FileTreeView.swift | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Hutch/Views/Repositories/FileTreeView.swift b/Hutch/Views/Repositories/FileTreeView.swift index 462a25e..ec33822 100644 --- a/Hutch/Views/Repositories/FileTreeView.swift +++ b/Hutch/Views/Repositories/FileTreeView.swift @@ -260,7 +260,9 @@ private struct FileTreeContentView: View { FileContentShareSheet(activityItems: [text]) } .alert("Share Unavailable", isPresented: $showShareUnavailableAlert) { - Button("OK", role: .cancel) {} + Button("OK", role: .cancel) { + // no-op: .cancel role handles alert dismissal + } } message: { Text(SRHTShareTarget.file.fallbackMessage) } @@ -403,7 +405,9 @@ struct FileContentShareSheet: UIViewControllerRepresentable { UIActivityViewController(activityItems: activityItems, applicationActivities: nil) } - func updateUIViewController(_ : UIActivityViewController, context _: Context) {} + func updateUIViewController(_ : UIActivityViewController, context _: Context) { + // no-op: UIActivityViewController manages its own state after presentation + } } final class CodeFileUIView: UIView { |
