From 9b03a32eec1597ac28595f77ca1f34e29dbcbe21 Mon Sep 17 00:00:00 2001 From: milotodt Date: Tue, 2 Apr 2019 16:04:35 -0700 Subject: [PATCH] removed uneeded line of code --- browser/main/lib/dataApi/attachmentManagement.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/browser/main/lib/dataApi/attachmentManagement.js b/browser/main/lib/dataApi/attachmentManagement.js index 8091d753..19cf5723 100644 --- a/browser/main/lib/dataApi/attachmentManagement.js +++ b/browser/main/lib/dataApi/attachmentManagement.js @@ -274,13 +274,12 @@ function generateAttachmentMarkdown (fileName, path, showPreview) { * @param {String} noteKey Key of the current note * @param {Event} dropEvent DropEvent */ -function handleAttachmentDrop(codeEditor, storageKey, noteKey, dropEvent) { +function handleAttachmentDrop (codeEditor, storageKey, noteKey, dropEvent) { let promise if (dropEvent.dataTransfer.files.length > 0) { promise = Promise.all(Array.from(dropEvent.dataTransfer.files).map(file => { var filePath = file.path if (file.type.startsWith('image')) { - var a = getOrientation(file) if (file.type === 'image/gif' || file.type === 'image/svg+xml') { return copyAttachment(file.path, storageKey, noteKey).then(fileName => ({ fileName, @@ -290,7 +289,7 @@ function handleAttachmentDrop(codeEditor, storageKey, noteKey, dropEvent) { } else { return getOrientation(file) .then((orientation) => { - if (orientation === -1) { + if (orientation === -1) { // The image rotation is correct and does not need adjustment return copyAttachment(file.path, storageKey, noteKey) } else { return fixRotate(file).then(data => copyAttachment({