Skip to content

Commit 446eeb3

Browse files
committed
fix linters unused
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
1 parent c9f80ca commit 446eeb3

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

pkg/compliance/fsct/fsct.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ func IsComponentPartOfPrimaryDependency(id string) bool {
391391
}
392392

393393
func fsctPackageDependencies(doc sbom.Document, component sbom.GetComponent) *db.Record {
394-
result, score, maturity := "no-relationships", 0.0, "None"
394+
result, score, maturity := "", 0.0, "None"
395395
var dependencies []string
396396
compWithIncludedRel := false
397397
var compWithNoRel bool
@@ -452,7 +452,6 @@ func fsctPackageDependencies(doc sbom.Document, component sbom.GetComponent) *db
452452
if PrimaryDependencies[component.GetID()] {
453453
compWithRelAndIncluded = true
454454
allDepByName = append([]string{"included-in"}, allDepByName...)
455-
// allDepByName = append(allDepByName, "included-in")
456455
}
457456
compWithRel = true
458457

pkg/compliance/fsct/fsct_test.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -766,21 +766,6 @@ func TestFsctComponentLevelOnSpdxAndCdx(t *testing.T) {
766766
}
767767
}
768768

769-
func cdxCompWithUniqID() sbom.GetComponent {
770-
name := "cobra"
771-
p := []purl.PURL{}
772-
npurl := purl.NewPURL("pkg:github/spf13/cobra@e94f6d0dd9a5e5738dca6bce03c4b1207ffbc0ec")
773-
if npurl.Valid() {
774-
p = append(p, npurl)
775-
}
776-
777-
comp := sbom.Component{
778-
Name: name,
779-
Purls: p,
780-
}
781-
return comp
782-
}
783-
784769
func primaryCompWithHigherChecksum() (sbom.Document, sbom.GetComponent) {
785770
primary := sbom.PrimaryComp{}
786771

@@ -1384,17 +1369,6 @@ func cdxCompWithOmniBorID() sbom.GetComponent {
13841369
return comp
13851370
}
13861371

1387-
func cdxCompWithCPE() sbom.GetComponent {
1388-
comp := sbom.NewComponent()
1389-
comp.Name = "packageurl-go"
1390-
PackageURL := "pkg:github/package-url/packageurl-go@7cb81af9593b9512bb946c55c85609948c48aab9"
1391-
1392-
prl := purl.NewPURL(PackageURL)
1393-
comp.Purls = []purl.PURL{prl}
1394-
1395-
return comp
1396-
}
1397-
13981372
func cdxCompWithPurlOmniSwhidAndSwid() sbom.GetComponent {
13991373
comp := sbom.NewComponent()
14001374
comp.Name = "acme"

0 commit comments

Comments
 (0)