File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export class Manifest {
174
174
return [ ...new Set ( this . _findAll ( manifest => manifest . _recipes ) ) ] ;
175
175
}
176
176
get allHandles ( ) {
177
- // Reduce is equivalent to flatMap
177
+ // TODO(#4820) Update `reduce` to use flatMap
178
178
return [ ...new Set ( this . _findAll ( manifest => manifest . _recipes . reduce ( ( acc , x ) => acc . concat ( x . handles ) , [ ] ) ) ) ] ;
179
179
}
180
180
get activeRecipe ( ) {
@@ -329,8 +329,9 @@ export class Manifest {
329
329
function fatePredicate ( handle : Handle ) {
330
330
return fates === [ ] || fates . includes ( handle . fate ) ;
331
331
}
332
+ // TODO(#4820) Update `reduce` to use flatMap
332
333
return [ ...this . _findAll ( manifest => manifest . _recipes
333
- . flatMap ( r => r . handles )
334
+ . reduce ( ( acc , r ) => acc . concat ( r . handles ) , [ ] )
334
335
. filter ( h => this . _typePredicate ( h , type , subtype ) && tagPredicate ( h ) && fatePredicate ( h ) ) ) ] ;
335
336
}
336
337
findHandlesById ( id : string ) : Handle [ ] {
You can’t perform that action at this time.
0 commit comments