Skip to content

Commit

Permalink
all: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-roland committed Jan 23, 2024
1 parent 317bc0c commit afcad97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/modules/inbox/inboxFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ abstract class BatchInboxFetcherBaseImplementation
}
const hasLandingMessage = notif.hasLandingMessage;
if (typeof hasLandingMessage !== "boolean") {
throw new Error("An Inbox Notification must at least have a hasLandingMessage flag");
throw new Error(
"An Inbox Notification must at least have a hasLandingMessage flag"
);
}

const parsedNotif: BatchSDK.InboxNotification = {
Expand Down
5 changes: 4 additions & 1 deletion src/modules/user/userDataEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ export class BatchUserDataEditor implements BatchSDK.BatchUserDataEditor {
public setEmailMarketingSubscriptionState(
state: "subscribed" | "unsubscribed"
): this {
if (typeof state !== "string" || (state !== "subscribed" && state !== "unsubscribed")) {
if (
typeof state !== "string" ||
(state !== "subscribed" && state !== "unsubscribed")
) {
writeBatchLog(
false,
"BatchUserDataEditor - Email marketing subscription state must be `subscribed` or `unsubscribed`."
Expand Down

0 comments on commit afcad97

Please sign in to comment.