www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 00b28236127f8785c82aae4904b1cc37392d5ee3
parent b50b055e442d0e24ec477e6d6f45034cd397c8cb
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  1 Mar 2018 01:12:42 -0500

Avoid repeating line in Zotero.Fulltext.indexItems()

Diffstat:
Mchrome/content/zotero/xpcom/fulltext.js | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js @@ -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; + } } } });