always use template strings instead of string concatenation

This commit is contained in:
zadam
2022-12-21 15:19:05 +01:00
parent ea006993f6
commit 1b24276a4a
154 changed files with 433 additions and 437 deletions

View File

@@ -13,7 +13,7 @@ const ACTION_HANDLERS = {
note.addRelation(action.relationName, action.targetNoteId);
},
deleteNote: (action, note) => {
const deleteId = 'searchbulkaction-' + utils.randomString(10);
const deleteId = `searchbulkaction-${utils.randomString(10)}`;
note.deleteNote(deleteId);
},
@@ -34,7 +34,7 @@ const ACTION_HANDLERS = {
// "officially" injected value:
// - note
const newTitle = eval('`' + action.newTitle + '`');
const newTitle = eval(`\`${action.newTitle}\``);
if (note.title !== newTitle) {
note.title = newTitle;