1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-07-07 04:30:38 +00:00

smtp/client: use destructuring instead of indexing into array

This commit is contained in:
Zack Schuster 2020-05-26 23:57:58 -07:00
parent 65397da42d
commit 6a5833b699

View File

@ -84,10 +84,11 @@ export class Client {
/* ø */
}
) {
const [{ address: from }] = addressparser(message.header.from);
const stack = {
message,
to: [] as ReturnType<typeof addressparser>,
from: addressparser(message.header.from)[0].address,
from,
callback: callback.bind(this),
} as MessageStack;