Avoid repeating line in Zotero.Fulltext.indexItems()

This commit is contained in:
Dan Stillman 2018-03-01 01:12:42 -05:00
parent b50b055e44
commit 00b2823612

View file

@ -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;
}
}
}
});