File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -363,8 +363,6 @@ struct _NormalizedUTF16CodeUnitIterator: IteratorProtocol {
363
363
364
364
guard segmentBufferIndex < segmentBufferCount else { return nil }
365
365
366
-
367
- if segmentBufferIndex < segmentBufferCount {
368
366
defer { segmentBufferIndex += 1 }
369
367
if _slowPath ( segmentHeapBuffer != nil ) {
370
368
return segmentHeapBuffer![ segmentBufferIndex]
@@ -402,7 +400,7 @@ struct _NormalizedUTF16CodeUnitIterator: IteratorProtocol {
402
400
_ stackBufferCount: Int ? = nil
403
401
) -> Int {
404
402
if segmentHeapBuffer == nil {
405
- _sanityCheck ( normalizationHeapBuffer == nil )
403
+ _internalInvariant ( normalizationHeapBuffer == nil )
406
404
let preFilledBufferCount = stackBufferCount ?? 0
407
405
let size = ( source. remaining + preFilledBufferCount)
408
406
* _Normalization. _maxNFCExpansionFactor
You can’t perform that action at this time.
0 commit comments