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:
parent
65397da42d
commit
6a5833b699
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user