Skip to content

Commit 494735e

Browse files
committed
all: lint fix
1 parent d17a543 commit 494735e

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

src/modules/profile/profileAttributeEditor.ts

+32-32
Original file line numberDiff line numberDiff line change
@@ -96,41 +96,41 @@ export class BatchProfileAttributeEditor
9696
return this;
9797
}
9898

99-
public setPhoneNumber(phoneNumber: string | null): this {
100-
if (typeof phoneNumber !== "string" && phoneNumber !== null) {
101-
writeBatchLog(
102-
false,
103-
"BatchProfileAttributeEditor - Phone number must be a string or null"
104-
);
105-
return this;
106-
}
107-
this._enqueueOperation(ProfileAttributeOperation.SetPhoneNumber, {
108-
value: phoneNumber,
109-
});
110-
return this;
99+
public setPhoneNumber(phoneNumber: string | null): this {
100+
if (typeof phoneNumber !== "string" && phoneNumber !== null) {
101+
writeBatchLog(
102+
false,
103+
"BatchProfileAttributeEditor - Phone number must be a string or null"
104+
);
105+
return this;
111106
}
107+
this._enqueueOperation(ProfileAttributeOperation.SetPhoneNumber, {
108+
value: phoneNumber,
109+
});
110+
return this;
111+
}
112112

113-
public setSMSMarketingSubscription(
114-
state: "subscribed" | "unsubscribed"
115-
): this {
116-
if (
117-
typeof state !== "string" ||
118-
(state !== "subscribed" && state !== "unsubscribed")
119-
) {
120-
writeBatchLog(
121-
false,
122-
"BatchProfileAttributeEditor - SMS marketing subscription state must be `subscribed` or `unsubscribed`."
123-
);
124-
return this;
125-
}
126-
this._enqueueOperation(
127-
ProfileAttributeOperation.SetSMSMarketingSubscription,
128-
{
129-
value: state,
130-
}
131-
);
132-
return this;
113+
public setSMSMarketingSubscription(
114+
state: "subscribed" | "unsubscribed"
115+
): this {
116+
if (
117+
typeof state !== "string" ||
118+
(state !== "subscribed" && state !== "unsubscribed")
119+
) {
120+
writeBatchLog(
121+
false,
122+
"BatchProfileAttributeEditor - SMS marketing subscription state must be `subscribed` or `unsubscribed`."
123+
);
124+
return this;
133125
}
126+
this._enqueueOperation(
127+
ProfileAttributeOperation.SetSMSMarketingSubscription,
128+
{
129+
value: state,
130+
}
131+
);
132+
return this;
133+
}
134134

135135
public setAttribute(
136136
key: string,

0 commit comments

Comments
 (0)