Skip to content

Commit 6680de6

Browse files
committed
Fixed some SwiftLint errors
1 parent 9c0e465 commit 6680de6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/CodeEditSourceEditor/Controller/TextViewController+LoadView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extension TextViewController {
5858
styleScrollView()
5959
styleGutterView()
6060
styleMinimapView()
61-
61+
6262
// Set up
6363
setUpHighlighter()
6464
setUpTextFormation()
@@ -116,7 +116,7 @@ extension TextViewController {
116116
) { [weak self] notification in
117117
guard let clipView = notification.object as? NSClipView,
118118
let textView = self?.textView else { return }
119-
self?.textView.updatedViewport(self?.scrollView.documentVisibleRect ?? .zero)
119+
textView.updatedViewport(self?.scrollView.documentVisibleRect ?? .zero)
120120
self?.gutterView.needsDisplay = true
121121
self?.minimapXConstraint?.constant = clipView.bounds.origin.x
122122
}

Sources/CodeEditSourceEditor/Minimap/MinimapView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class MinimapView: FlippedNSView {
103103
separatorView.layer?.backgroundColor = isLightMode
104104
? NSColor.black.withAlphaComponent(0.1).cgColor
105105
: NSColor.white.withAlphaComponent(0.1).cgColor
106-
106+
107107
super.init(frame: .zero)
108108

109109
setUpPanGesture()

0 commit comments

Comments
 (0)