Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Soham Arora <[email protected]>
  • Loading branch information
arorasoham9 committed Apr 4, 2024
1 parent 3c10d97 commit 853c095
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/analyzer/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func HasSBOMToGraph(cmd *cobra.Command, ctx context.Context, gqlclient graphql.C
os.Exit(1)
}
} else if purl {
hasSBOMResponseTwo, err = findHasSBOMBy( model.HasSBOMSpec{} ,"", sboms[0], "", ctx, gqlclient)
hasSBOMResponseOne, err = findHasSBOMBy( model.HasSBOMSpec{} ,"", sboms[0], "", ctx, gqlclient)
if err != nil {
fmt.Println("(purl)failed to lookup sbom:", sboms[0], err)
os.Exit(1)
Expand All @@ -333,7 +333,7 @@ func HasSBOMToGraph(cmd *cobra.Command, ctx context.Context, gqlclient graphql.C
os.Exit(1)
}
} else if id {
hasSBOMResponseTwo, err = findHasSBOMBy( model.HasSBOMSpec{} ,"", "", sboms[0], ctx, gqlclient)
hasSBOMResponseOne, err = findHasSBOMBy( model.HasSBOMSpec{} ,"", "", sboms[0], ctx, gqlclient)
if err != nil {
fmt.Println("(id)failed to lookup sbom:", sboms[0], err)
os.Exit(1)
Expand Down Expand Up @@ -428,7 +428,7 @@ func HighlightAnalysis(gOne, gTwo graph.Graph[string, *Node], action int) (graph
case 0:
var diffList HighlightedDiff
//check nodes and their data
for bigNodeId, _ := range(bigNodes){
for bigNodeId := range(bigNodes){
if _, err = small.Vertex(bigNodeId); err == nil {
nodeBig, _ := big.Vertex(bigNodeId)
nodeSmall, _ := small.Vertex(bigNodeId)
Expand Down

0 comments on commit 853c095

Please sign in to comment.