Skip to content

Commit

Permalink
Adjust whitespace in code
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Aug 17, 2024
1 parent e36f880 commit 234a082
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CotEditor/Sources/FileNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct FileNode: Equatable {

var isDirectory: Bool { self.kind == .folder }
var isHidden: Bool { self.name.starts(with: ".") }
var isWritable: Bool { self.permissions.user.contains(.write) }
var isWritable: Bool { self.permissions.user.contains(.write) }
var directoryURL: URL { self.isDirectory ? self.fileURL : self.fileURL.deletingLastPathComponent() }
}

Expand Down
2 changes: 1 addition & 1 deletion CotEditor/Sources/LineNumberView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ final class LineNumberView: NSView {

// MARK: Public Properties

weak var textView: NSTextView? { didSet { self.updateTextView(textView)} }
weak var textView: NSTextView? { didSet { self.updateTextView(textView) } }

var orientation: NSLayoutManager.TextLayoutOrientation = .horizontal {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class StatableMenuToolbarItem: NSMenuToolbarItem, StatableItem, Val
public override var image: NSImage? {

get { super.image }
@available(*, unavailable, message: "Set images through 'stateImages' instead.") set { }
@available(*, unavailable, message: "Set images through 'stateImages' instead.") set { }
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class StatableToolbarItem: NSToolbarItem, StatableItem {
public override var image: NSImage? {

get { super.image }
@available(*, unavailable, message: "Set images through 'stateImages' instead.") set { }
@available(*, unavailable, message: "Set images through 'stateImages' instead.") set { }
}


Expand Down
2 changes: 1 addition & 1 deletion Tests/DebouncerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct DebouncerTests {

@Test func cancel() async {

await confirmation("Debouncer cancelled", expectedCount: 0) { @MainActor confirm in
await confirmation("Debouncer cancelled", expectedCount: 0) { @MainActor confirm in
let debouncer = Debouncer {
confirm()
}
Expand Down

0 comments on commit 234a082

Please sign in to comment.