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:
parent
399baf0d73
commit
c45405190a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue