From 33b761fac33f191dfa7df98d5e04a36c0f9f3750 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Fri, 3 Apr 2026 01:33:02 +0200 Subject: [PATCH] make check easier to understand --- src/backend/InvenTree/plugin/installer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/InvenTree/plugin/installer.py b/src/backend/InvenTree/plugin/installer.py index ef689cf317..4069a4234a 100644 --- a/src/backend/InvenTree/plugin/installer.py +++ b/src/backend/InvenTree/plugin/installer.py @@ -265,9 +265,7 @@ def install_plugin( if url: # VCS based install - this can just be a VCS reference - if True in [ - identifier in url for identifier in ['git+https', 'hg+https', 'svn+svn'] - ]: + if url.startswith(('git+https://', 'hg+https://', 'svn+svn://')): # using a VCS provider package_ref = f'{packagename}@{url}' if packagename else url # http based index reference