From 19382a061faca3d32864131433e69ca654ca8777 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Mon, 7 Aug 2023 17:03:27 +0200 Subject: [PATCH] Remove unnecessary code in getFileBaseNameFromItem --- chrome/content/zotero/xpcom/attachments.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 59d9139efa..7cc1347df3 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -2256,16 +2256,13 @@ Zotero.Attachments = new function () { const getSlicedCreatorsOfType = (creatorType, slice) => { let creatorTypeIDs; switch (creatorType) { - case 'author': case 'authors': creatorTypeIDs = [Zotero.CreatorTypes.getPrimaryIDForType(item.itemTypeID)]; break; - case 'editor': case 'editors': creatorTypeIDs = [Zotero.CreatorTypes.getID('editor'), Zotero.CreatorTypes.getID('seriesEditor')]; break; default: - case 'creator': case 'creators': creatorTypeIDs = null; break;