Avoid repeating line in Zotero.Fulltext.indexItems()
This commit is contained in:
parent
b50b055e44
commit
00b2823612
1 changed files with 8 additions and 8 deletions
|
@ -527,17 +527,17 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
|||
continue;
|
||||
}
|
||||
|
||||
if (ignoreErrors) {
|
||||
try {
|
||||
yield indexFile(path, item.attachmentContentType, item.attachmentCharset, itemID, complete);
|
||||
}
|
||||
catch (e) {
|
||||
try {
|
||||
yield indexFile(path, item.attachmentContentType, item.attachmentCharset, itemID, complete);
|
||||
}
|
||||
catch (e) {
|
||||
if (ignoreErrors) {
|
||||
Components.utils.reportError("Error indexing " + path);
|
||||
Zotero.logError(e);
|
||||
}
|
||||
}
|
||||
else {
|
||||
yield indexFile(path, item.attachmentContentType, item.attachmentCharset, itemID, complete);
|
||||
else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue