Skip to content

Commit

Permalink
Merge pull request #1758 from Eitot/feature/swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
josh64x2 authored Jun 23, 2024
2 parents 5f1d600 + d1ee190 commit a151fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Vienna/Sources/Main window/MainWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ final class MainWindowController: NSWindowController {

// MARK: Window restoration

override class var restorableStateKeyPaths: [String] {
override static var restorableStateKeyPaths: [String] {
var keyPaths = super.restorableStateKeyPaths
keyPaths += ["unreadCount", "currentFilter"]
return keyPaths
Expand Down
4 changes: 2 additions & 2 deletions Vienna/Sources/Plug-ins/DirectoryMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class DirectoryMonitor: NSObject {
// The eventHandler will be kept in memory until stop() is called.
private var eventHandler: EventHandler?

// The callback will pass along the raw pointer to the direcory monitor
// The callback will pass along the raw pointer to the directory monitor
// instance. Recasting this will make the event handler accessible.
private var callback: FSEventStreamCallback = { _, info, eventCount, paths, flags, _ -> Void in
private var callback: FSEventStreamCallback = { _, info, eventCount, paths, flags, _ in
guard let info = info else {
os_log("No pointer to the event handler", log: .monitor, type: .fault)
return
Expand Down

0 comments on commit a151fb8

Please sign in to comment.