Skip to content

Commit fc3341e

Browse files
author
Lance Parker
committed
fixup rebase
1 parent f9aa787 commit fc3341e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/public/core/NormalizedCodeUnitIterator.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,6 @@ struct _NormalizedUTF16CodeUnitIterator: IteratorProtocol {
363363

364364
guard segmentBufferIndex < segmentBufferCount else { return nil }
365365

366-
367-
if segmentBufferIndex < segmentBufferCount {
368366
defer { segmentBufferIndex += 1 }
369367
if _slowPath(segmentHeapBuffer != nil) {
370368
return segmentHeapBuffer![segmentBufferIndex]
@@ -402,7 +400,7 @@ struct _NormalizedUTF16CodeUnitIterator: IteratorProtocol {
402400
_ stackBufferCount: Int? = nil
403401
) -> Int {
404402
if segmentHeapBuffer == nil {
405-
_sanityCheck(normalizationHeapBuffer == nil)
403+
_internalInvariant(normalizationHeapBuffer == nil)
406404
let preFilledBufferCount = stackBufferCount ?? 0
407405
let size = (source.remaining + preFilledBufferCount)
408406
* _Normalization._maxNFCExpansionFactor

0 commit comments

Comments
 (0)