Skip to content

Commit

Permalink
refactor: fixed typo, break in apk case
Browse files Browse the repository at this point in the history
  • Loading branch information
mcombuechen committed Feb 1, 2024
1 parent 286ced3 commit 4db8df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ecosystems/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 4db8df7

Please sign in to comment.