Skip to content

Commit ce8d8a2

Browse files
committed
Remove an unnecessary end check
1 parent 5114ea4 commit ce8d8a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_StringProcessing/Engine/MEBuiltins.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ extension String {
190190
limitedBy end: String.Index,
191191
isScalarSemantics: Bool
192192
) -> QuickResult<String.Index?> {
193-
guard currentPosition < end else { return .definite(nil) }
193+
assert(currentPosition < end)
194194
guard let (asciiValue, next, isCRLF) = _quickASCIICharacter(
195195
at: currentPosition, limitedBy: end
196196
) else {

0 commit comments

Comments
 (0)