diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 7cc1347df3..01393f551d 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -84,7 +84,7 @@ Zotero.Attachments = new function () { throw new Error("parentItemID and collections cannot both be provided"); } - var attachmentItem, itemID, newFile, contentType, destDir; + var attachmentItem, newFile, destDir; try { yield Zotero.DB.executeTransaction(async function () { // Create a new attachment