Skip to content

Commit

Permalink
fix swiftlint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
knotbin committed Apr 25, 2024
1 parent 608aafc commit cb02e05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ final class CodeEditWindowController: NSWindowController, NSToolbarDelegate, Obs
init(window: NSWindow, workspace: WorkspaceDocument) {
super.init(window: window)
self.workspace = workspace
self.workspaceSettings = CEWorkspaceSettings(
workspaceDocument: workspace
)
self.workspaceSettings = CEWorkspaceSettings(workspaceDocument: workspace)
setupSplitView(with: workspace)

let view = CodeEditSplitView(controller: splitViewController).ignoresSafeArea()
Expand All @@ -56,9 +54,7 @@ final class CodeEditWindowController: NSWindowController, NSToolbarDelegate, Obs
registerCommands()
}

deinit {
cancellables.forEach({ $0.cancel() })
}
deinit { cancellables.forEach({ $0.cancel() }) }

@available(*, unavailable)
required init?(coder: NSCoder) {
Expand Down Expand Up @@ -189,9 +185,7 @@ final class CodeEditWindowController: NSWindowController, NSToolbarDelegate, Obs
) -> NSToolbarItem? {
switch itemIdentifier {
case .itemListTrackingSeparator:
guard let splitViewController else {
return nil
}
guard let splitViewController else { return nil }

return NSTrackingSeparatorToolbarItem(
identifier: .itemListTrackingSeparator,
Expand Down
1 change: 0 additions & 1 deletion CodeEdit/Features/WindowCommands/ViewCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ struct ViewCommands: Commands {
windowController = window?.windowController as? CodeEditWindowController
}


Button("\(inspectorCollapsed ? "Show" : "Hide") Inspector") {
windowController?.toggleLastPanel()
}
Expand Down

0 comments on commit cb02e05

Please sign in to comment.