Skip to content

Commit 767b8bf

Browse files
vagishaCopilot
andauthored
Change condition to use toolIcon == null to avoid scanning the entire tool ZIP
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent d433acb commit 767b8bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SkylineToolsStore/src/org/labkey/skylinetoolsstore/SkylineToolsStoreController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected SkylineTool getToolFromZip(MultipartFile zip) throws IOException
176176
{
177177
ZipEntry zipEntry;
178178
while ((zipEntry = zipStream.getNextEntry()) != null &&
179-
(tool == null || tool.getIcon() == null))
179+
(tool == null || toolIcon == null))
180180
{
181181
String entryLower = zipEntry.getName().toLowerCase();
182182
if (entryLower.startsWith("tool-inf/") && !entryLower.startsWith("tool-inf/docs/"))

0 commit comments

Comments
 (0)