From b6ca3eac377e35261c9eed22576a2126d5ea11d0 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 23 Jan 2025 17:56:32 -0500 Subject: [PATCH] Remove dead contentType branch Already handled in isCachedMIMEType(). --- chrome/content/zotero/xpcom/data/item.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index d92616665e..ce28fb20d7 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3725,11 +3725,6 @@ Zotero.defineProperty(Zotero.Item.prototype, 'attachmentText', { } } - else if (contentType == 'text/html') { - str = await Zotero.File.getContentsAsync(path); - str = Zotero.Utilities.unescapeHTML(str); - } - else if (contentType == 'text/plain') { str = await Zotero.File.getContentsAsync(path); }