@@ -2461,7 +2461,8 @@ extension KMMainViewController {
}
} else {
- let file: URL = (self.myDocument?.fileURL)!
+ guard let url = self.myDocument?.fileURL else { return }
+ let file: URL = url
if FileManager.default.fileExists(atPath: file.path) {
NSWorkspace.shared.activateFileViewerSelecting([file])