Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89a26f0

Browse files
committedApr 9, 2025·
style: Linting fixes
1 parent 5ee1633 commit 89a26f0

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed
 

‎src/__tests__/adapters/mail.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import adaptMail from "../../adapters/mail";
22

33
import config from "../../config";
4-
import { adaptSingleRecipient, adaptReplyToRecipient } from "../../adapters/recipients";
4+
import {
5+
adaptSingleRecipient,
6+
adaptReplyToRecipient,
7+
} from "../../adapters/recipients";
58

69
const { ERRORS } = config;
710
const { SUBJECT_REQUIRED, FROM_REQUIRED } = ERRORS;

‎src/adapters/mail.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import adaptAttachment from "./attachement";
22
import adaptContent from "./content";
33
import adaptHeaders from "./headers";
4-
import adaptRecipients, { adaptSingleRecipient, adaptReplyToRecipient } from "./recipients";
4+
import adaptRecipients, {
5+
adaptSingleRecipient,
6+
adaptReplyToRecipient,
7+
} from "./recipients";
58

69
import CONFIG from "../config";
710

‎src/adapters/recipients.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function adaptRecipients(
4242
/**
4343
* If there is no recipient or empty array is passed, then return undefined since it is an optional field.
4444
* If it's not array, then adapt recipient and returns it.
45-
* Otherwise, if type is array as nodemailer allows, we pick the first recipient
45+
* Otherwise, if type is array as nodemailer allows, we pick the first recipient
4646
* as Mailtrap doesn't support multiple reply-to recipients.
4747
*/
4848
export function adaptReplyToRecipient(
@@ -52,7 +52,7 @@ export function adaptReplyToRecipient(
5252
| Array<string | NodemailerAddress>
5353
| undefined
5454
): Address | undefined {
55-
if(!recipients || (Array.isArray(recipients) && recipients.length === 0)) {
55+
if (!recipients || (Array.isArray(recipients) && recipients.length === 0)) {
5656
return undefined;
5757
}
5858

@@ -61,4 +61,4 @@ export function adaptReplyToRecipient(
6161
}
6262

6363
return adaptSingleRecipient(recipients[0]);
64-
}
64+
}

0 commit comments

Comments
 (0)
Please sign in to comment.