Skip to content

Commit 4676fde

Browse files
committed
fix: lint
1 parent ddaefde commit 4676fde

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/common/helper.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,17 +1369,17 @@ async function getUserByHandle (userHandle) {
13691369
}
13701370

13711371
/**
1372-
*
1373-
* @param {String} string that will be modifed
1372+
*
1373+
* @param {String} string that will be modifed
13741374
* @param {*} object of json that would be replaced in string
1375-
* @returns
1375+
* @returns
13761376
*/
13771377
async function substituteStringByObject (string, object) {
13781378
for (var key in object) {
1379-
if (!object.hasOwnProperty(key)) {
1380-
continue;
1379+
if (!Object.prototype.hasOwnProperty.call(object, key)) {
1380+
continue
13811381
}
1382-
string = string.replace(new RegExp("{{" + key + "}}", "g"), object[key]);
1382+
string = string.replace(new RegExp('{{' + key + '}}', 'g'), object[key])
13831383
}
13841384
return string
13851385
}

src/services/TeamService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async function sendEmail (currentUser, data) {
325325
subject: data.subject || template.subject,
326326
body: data.body || template.body
327327
}
328-
for(var key in subjectBody) {
328+
for (var key in subjectBody) {
329329
subjectBody[key] = await helper.substituteStringByObject(subjectBody[key], data.data)
330330
}
331331
const emailData = {

0 commit comments

Comments
 (0)