mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Code cleanup: Remove unnecessary Promise.all (#150094)
This commit is contained in:
parent
6b790e7994
commit
a858201aa1
1 changed files with 10 additions and 12 deletions
|
@ -54,23 +54,21 @@ async function generate() {
|
|||
{}
|
||||
);
|
||||
|
||||
await Promise.all([
|
||||
writeFile(
|
||||
outputFieldMapFilename,
|
||||
`
|
||||
await writeFile(
|
||||
outputFieldMapFilename,
|
||||
`
|
||||
/* This file is generated by x-pack/plugins/rule_registry/scripts/generate_ecs_fieldmap/index.js,
|
||||
do not manually edit
|
||||
*/
|
||||
|
||||
export const ecsFieldMap = ${JSON.stringify(fields, null, 2)} as const
|
||||
export const ecsFieldMap = ${JSON.stringify(fields, null, 2)} as const
|
||||
|
||||
export type EcsFieldMap = typeof ecsFieldMap;
|
||||
`,
|
||||
{ encoding: 'utf-8' }
|
||||
).then(() => {
|
||||
return exec(`node scripts/eslint --fix ${outputFieldMapFilename}`);
|
||||
}),
|
||||
]);
|
||||
export type EcsFieldMap = typeof ecsFieldMap;
|
||||
`,
|
||||
{ encoding: 'utf-8' }
|
||||
);
|
||||
|
||||
await exec(`node scripts/eslint --fix ${outputFieldMapFilename}`);
|
||||
}
|
||||
|
||||
generate().catch((err) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue