From daea604c607480ac50b04b22427dcf6bc25ad3f7 Mon Sep 17 00:00:00 2001 From: Frank Kanis Date: Thu, 12 Apr 2018 21:51:01 +0200 Subject: [PATCH] Added spaces --- browser/main/lib/dataApi/moveNote.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/main/lib/dataApi/moveNote.js b/browser/main/lib/dataApi/moveNote.js index 31e9d096..bb17d208 100644 --- a/browser/main/lib/dataApi/moveNote.js +++ b/browser/main/lib/dataApi/moveNote.js @@ -68,7 +68,7 @@ function moveNote (storageKey, noteKey, newStorageKey, newFolderKey) { return noteData }) .then(function moveImages (noteData) { - if(oldStorage.path === newStorage.path) { + if (oldStorage.path === newStorage.path) { return noteData } else { const searchImagesRegex = /!\[.*?]\(\s*?\/:storage\/(.*\.\S*?)\)/gi @@ -90,8 +90,8 @@ function moveNote (storageKey, noteKey, newStorageKey, newFolderKey) { } return Promise.all(moveTasks).then(() => noteData) - } - }) + } + }) .then(function writeAndReturn (noteData) { CSON.writeFileSync(path.join(newStorage.path, 'notes', noteData.key + '.cson'), _.omit(noteData, ['key', 'storage'])) return noteData