Skip to content

Commit 949639b

Browse files
committed
Linter
1 parent d803c7c commit 949639b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/CodeEditTextView/TextLineStorage/TextLineStorage.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ public final class TextLineStorage<Data: Identifiable> {
194194
/// - delta: The change in length of the document. Negative for deletes, positive for insertions.
195195
/// - deltaHeight: The change in height of the document.
196196
public func update(atOffset offset: Int, delta: Int, deltaHeight: CGFloat) {
197-
assert(offset >= 0 && offset <= self.length, "Invalid index, expected between 0 and \(self.length). Got \(offset)")
197+
assert(
198+
offset >= 0 && offset <= self.length,
199+
"Invalid index, expected between 0 and \(self.length). Got \(offset)"
200+
)
198201
assert(delta != 0 || deltaHeight != 0, "Delta must be non-0")
199202
let position: NodePosition?
200203
if offset == self.length { // Updates at the end of the document are valid

0 commit comments

Comments
 (0)