File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/service-worker/worker/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -287,11 +287,11 @@ export class AppVersion implements UpdateSource {
287287 * Return a list of the names of all caches used by this version.
288288 */
289289 async getCacheNames ( ) : Promise < string [ ] > {
290- const [ assetGroupCacheNames , dataGroupCacheNames ] = await Promise . all ( [
291- Promise . all ( this . assetGroups . map ( group => group . getCacheNames ( ) ) ) ,
292- Promise . all ( this . dataGroups . map ( group => group . getCacheNames ( ) ) ) ,
290+ const allGroupCacheNames = await Promise . all ( [
291+ ... this . assetGroups . map ( group => group . getCacheNames ( ) ) ,
292+ ... this . dataGroups . map ( group => group . getCacheNames ( ) ) ,
293293 ] ) ;
294- return ( [ ] as string [ ] ) . concat ( ...assetGroupCacheNames , ... dataGroupCacheNames ) ;
294+ return ( [ ] as string [ ] ) . concat ( ...allGroupCacheNames ) ;
295295 }
296296
297297 /**
You can’t perform that action at this time.
0 commit comments