1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Apply linter

This commit is contained in:
Laurent Cozic
2019-10-14 01:47:21 +02:00
parent a5f17fad58
commit 008e30bdb7
2 changed files with 7 additions and 9 deletions

View File

@ -481,17 +481,15 @@ class Note extends BaseItem {
return note;
}
static async duplicateMultipleNotes(noteIds, options = null){
/*
if options.uniqueTitle is true, a unique title for the duplicated file will be assigned.
*/
static async duplicateMultipleNotes(noteIds, options = null) {
// if options.uniqueTitle is true, a unique title for the duplicated file will be assigned.
const ensureUniqueTitle = options && options.ensureUniqueTitle;
for(const noteId of noteIds){
for (const noteId of noteIds) {
const noteOptions = {};
//If ensureUniqueTitle is truthy, set the original note's name as root for the unique title.
if(ensureUniqueTitle){
// If ensureUniqueTitle is truthy, set the original note's name as root for the unique title.
if (ensureUniqueTitle) {
const originalNote = await Note.load(noteId);
noteOptions.uniqueTitle = originalNote.title;
}