Remove needless async/await
This commit is contained in:
parent
26c9d8ff6f
commit
29b000e03c
6 changed files with 12 additions and 12 deletions
|
|
@ -73,13 +73,13 @@ export function validateFileName(name: string): boolean {
|
|||
);
|
||||
}
|
||||
|
||||
export const packMany = async (
|
||||
export const packMany = (
|
||||
files: any[],
|
||||
options?: {
|
||||
detail: boolean
|
||||
}
|
||||
) => {
|
||||
return (await Promise.all(files.map(f => pack(f, options))));
|
||||
return Promise.all(files.map(f => pack(f, options)));
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue