Three warnings go quiet — a weak binding turns let, the typed catch drops its dead generic twin, and a trash receipt is discarded on purpose

Claude-Session: https://claude.ai/code/session_014PtZdPwqZuqEDLc6wZMtEy
This commit is contained in:
2026-08-09 20:56:37 -04:00
parent 4210bbe0a7
commit ac4f8b9050
3 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -516,7 +516,7 @@ struct ShareBoardCommand: View {
Task { @MainActor in
// Weak: the window this share was invoked from must not be kept alive by this task
// across the flush's `await` just so the picker can anchor to it later.
weak var invokedWindow = NSApp.keyWindow ?? NSApp.mainWindow
weak let invokedWindow = NSApp.keyWindow ?? NSApp.mainWindow
let cancellation = BoardCopyCancellation<BoardShareStager.StagedArchive>()
let operation = store.banners.beginOperation(