From ffae53326a51a58e1c75b067fb1de27f4f70a4b5 Mon Sep 17 00:00:00 2001 From: ehhc Date: Mon, 28 May 2018 09:04:35 +0200 Subject: [PATCH] Fix for the issues raised in the code review --- browser/main/lib/dataApi/attachmentManagement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/lib/dataApi/attachmentManagement.js b/browser/main/lib/dataApi/attachmentManagement.js index 161a48a4..8cdc164b 100644 --- a/browser/main/lib/dataApi/attachmentManagement.js +++ b/browser/main/lib/dataApi/attachmentManagement.js @@ -86,7 +86,7 @@ function migrateAttachments (renderedHTML, storagePath, noteKey) { createAttachmentDestinationFolder(storagePath, noteKey) } for (const attachment of attachments) { - let attachmentBaseName = path.basename(attachment) + const attachmentBaseName = path.basename(attachment) const possibleLegacyPath = path.join(storagePath, 'images', attachmentBaseName) if (sander.existsSync(possibleLegacyPath)) { const destinationPath = path.join(storagePath, DESTINATION_FOLDER, attachmentBaseName)