Fix deprecated check error

This commit is contained in:
世界 committed 2026-04-23 08:12:53 +08:00
1 parent d833ab870f
commit 8480bc3bb6
1 file changed
+1 -7
@@ -165,18 +165,12 @@ public struct GlobalChecksModifier: ViewModifier {
let disableWarnings = await SharedPreferences.disableDeprecatedWarnings.get()
guard !disableWarnings else { return }
do {
let reports = try LibboxNewStandaloneCommandClient()!.getDeprecatedNotes()
guard let reports = try? LibboxNewStandaloneCommandClient()!.getDeprecatedNotes() else { return }
if reports.hasNext() {
await MainActor.run {
showNextDeprecatedNote(reports)
}
}
} catch {
await MainActor.run {
alert = AlertState(action: "check deprecated notes", error: error)
}
}
}
private func showNextDeprecatedNote(_ reports: any LibboxDeprecatedNoteIteratorProtocol) {