@@ -218,8 +218,8 @@ public struct IndexPath : ReferenceConvertible, Equatable, Hashable, MutableColl
218
218
}
219
219
case . single( let index) :
220
220
switch ( range. lowerBound, range. upperBound) {
221
- case ( 0 , 0 ) : fallthrough
222
- case ( 1 , 1 ) :
221
+ case ( 0 , 0 ) ,
222
+ ( 1 , 1 ) :
223
223
return . empty
224
224
case ( 0 , 1 ) :
225
225
return . single( index)
@@ -228,11 +228,9 @@ public struct IndexPath : ReferenceConvertible, Equatable, Hashable, MutableColl
228
228
}
229
229
case . pair( let first, let second) :
230
230
switch ( range. lowerBound, range. upperBound) {
231
- case ( 0 , 0 ) :
232
- fallthrough
233
- case ( 1 , 1 ) :
234
- fallthrough
235
- case ( 2 , 2 ) :
231
+ case ( 0 , 0 ) ,
232
+ ( 1 , 1 ) ,
233
+ ( 2 , 2 ) :
236
234
return . empty
237
235
case ( 0 , 1 ) :
238
236
return . single( first)
@@ -264,23 +262,19 @@ public struct IndexPath : ReferenceConvertible, Equatable, Hashable, MutableColl
264
262
self = newValue
265
263
case . single( let index) :
266
264
switch ( range. lowerBound, range. upperBound, newValue) {
267
- case ( 0 , 0 , . empty) :
268
- fallthrough
269
- case ( 1 , 1 , . empty) :
265
+ case ( 0 , 0 , . empty) ,
266
+ ( 1 , 1 , . empty) :
270
267
break
271
268
case ( 0 , 0 , . single( let other) ) :
272
269
self = . pair( other, index)
273
270
case ( 0 , 0 , . pair( let first, let second) ) :
274
271
self = . array( [ first, second, index] )
275
272
case ( 0 , 0 , . array( let other) ) :
276
273
self = . array( other + [ index] )
277
- case ( 0 , 1 , . empty) :
278
- fallthrough
279
- case ( 0 , 1 , . single) :
280
- fallthrough
281
- case ( 0 , 1 , . pair) :
282
- fallthrough
283
- case ( 0 , 1 , . array) :
274
+ case ( 0 , 1 , . empty) ,
275
+ ( 0 , 1 , . single) ,
276
+ ( 0 , 1 , . pair) ,
277
+ ( 0 , 1 , . array) :
284
278
self = newValue
285
279
case ( 1 , 1 , . single( let other) ) :
286
280
self = . pair( index, other)
0 commit comments