From 87bb7d17b2d384ffe9a93b8f6ab468e0e429c8a8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 29 Dec 2025 13:39:09 -0500 Subject: [PATCH] Remove unnecessary test in file-renaming code Regular items are by definition top-level items --- chrome/content/zotero/renameFiles.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/renameFiles.mjs b/chrome/content/zotero/renameFiles.mjs index 871ea06b8d..6f15f28b02 100644 --- a/chrome/content/zotero/renameFiles.mjs +++ b/chrome/content/zotero/renameFiles.mjs @@ -242,7 +242,7 @@ export function registerAutoRenameFileFromParent() { } const parentItem = await Zotero.Items.getAsync(id); - if (!parentItem.isTopLevelItem() || !parentItem.isRegularItem()) { + if (!parentItem.isRegularItem()) { continue; }