importFromFile: Remove duplicate and unused declarations

Apparently a var doesn't shadow a parameter with the same name, but that wasn't
obvious.
This commit is contained in:
Abe Jellinek 2023-09-22 12:13:19 -04:00
parent 399baf0d73
commit c45405190a

View file

@ -84,7 +84,7 @@ Zotero.Attachments = new function () {
throw new Error("parentItemID and collections cannot both be provided"); throw new Error("parentItemID and collections cannot both be provided");
} }
var attachmentItem, itemID, newFile, contentType, destDir; var attachmentItem, newFile, destDir;
try { try {
yield Zotero.DB.executeTransaction(async function () { yield Zotero.DB.executeTransaction(async function () {
// Create a new attachment // Create a new attachment