Skip to content

Commit 49b6bd4

Browse files
authored
refactor(shared): update genStaticKeys (#13010)
1 parent a9ca2d8 commit 49b6bd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/shared/util.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ export function genStaticKeys(
286286
modules: Array<{ staticKeys?: string[] } /* ModuleOptions */>
287287
): string {
288288
return modules
289-
.reduce((keys, m) => {
290-
return keys.concat(m.staticKeys || [])
291-
}, [] as string[])
289+
.reduce<string[]>((keys, m) => keys.concat(m.staticKeys || []), [])
292290
.join(',')
293291
}
294292

0 commit comments

Comments
 (0)