From 948f57369bddaec282c6b9dfe783898c2ff99840 Mon Sep 17 00:00:00 2001 From: leovct Date: Fri, 29 Nov 2024 13:28:56 +0100 Subject: [PATCH] fix: typo --- .../startosis_packages/git_package_content_provider/locators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go b/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go index 3ddc1dedad..b81d745c6d 100644 --- a/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go +++ b/core/server/api_container/server/startosis_engine/startosis_packages/git_package_content_provider/locators.go @@ -21,7 +21,7 @@ func isLocalLocator(locator string) bool { func shouldBlockAbsoluteLocatorBecauseIsInTheSameSourceModuleLocatorPackage(relativeOrAbsoluteLocator string, sourceModuleLocator string, rootPackageId string) bool { // Make sure the root package id ends with a trailing slash. - rootPackageId = strings.TrimPrefix(rootPackageId, "/") + "/" + rootPackageId = strings.TrimSuffix(rootPackageId, "/") + "/" isSourceModuleInRootPackage := strings.HasPrefix(sourceModuleLocator, rootPackageId) isAbsoluteLocatorInRootPackage := strings.HasPrefix(relativeOrAbsoluteLocator, rootPackageId) return isSourceModuleInRootPackage && isAbsoluteLocatorInRootPackage