From 4db8df7c0414f31ab6afc4115c36cfb0f05889f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Comb=C3=BCchen?= Date: Thu, 1 Feb 2024 17:28:55 +0100 Subject: [PATCH] refactor: fixed typo, break in apk case --- lib/ecosystems/package.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ecosystems/package.go b/lib/ecosystems/package.go index 73ab055..f1fe70c 100644 --- a/lib/ecosystems/package.go +++ b/lib/ecosystems/package.go @@ -79,7 +79,7 @@ func purlToEcosystemsName(purl packageurl.PackageURL) string { default: name = fmt.Sprintf("%s/%s", purl.Namespace, purl.Name) - // ecosyste,ms maven requires the group ID and artifact ID to be separated + // ecosyste.ms maven requires the group ID and artifact ID to be separated // by a colon ":", case packageurl.TypeMaven: name = fmt.Sprintf("%s:%s", purl.Namespace, purl.Name) @@ -92,7 +92,7 @@ func purlToEcosystemsName(purl packageurl.PackageURL) string { // apk packages are only used by alpine, so the namespace isn't used in the // package name for the ecosyste.ms API case packageurl.TypeApk: - name = purl.Name + break } return name