Remove needless async/await

This commit is contained in:
syuilo 2018-10-31 11:22:49 +09:00
parent 26c9d8ff6f
commit 29b000e03c
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 12 additions and 12 deletions

View file

@ -51,10 +51,10 @@ export interface INotification {
isRead: Boolean;
}
export const packMany = async (
export const packMany = (
notifications: any[]
) => {
return (await Promise.all(notifications.map(n => pack(n))));
return Promise.all(notifications.map(n => pack(n)));
};
/**