Skip to content

Commit

Permalink
print fixes and mod
Browse files Browse the repository at this point in the history
Signed-off-by: Soham Arora <[email protected]>
  • Loading branch information
arorasoham9 committed Aug 11, 2024
1 parent b217cec commit a01cd3e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ require (
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/shurcooL/githubv4 v0.0.0-20201206200315-234843c633fa // indirect
github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
Expand Down Expand Up @@ -323,6 +322,7 @@ require (
github.com/regclient/regclient v0.7.1
github.com/segmentio/kafka-go v0.4.47
github.com/segmentio/ksuid v1.0.4
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3
github.com/sigstore/sigstore v1.8.7
github.com/spdx/tools-golang v0.5.5
github.com/spf13/viper v1.19.0
Expand Down
4 changes: 1 addition & 3 deletions pkg/analyzer/analyzer_path_explosion.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ func CompressGraphs(g1, g2 graph.Graph[string, *Node]) (graph.Graph[string, *Nod
}


//REMOVE OUTGOING EDGES & REMOVE INCOMING EDGES &REMOVE NODES
//TODO: Check for repeated values in nodesToRemove. It can be a case even though all nodes are unique in the graph
//the structure of the graph may lead to new additions. This is required as RemoveVertex may throw a "vertex not found" error
//REMOVE OUTGOING EDGES & REMOVE INCOMING EDGES & REMOVE NODES
for _, val := range nodesToRemove {

nodeMapOne, ok := gOneAdjacencyMap[val]
Expand Down
1 change: 0 additions & 1 deletion pkg/analyzer/print_analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ func PrintDiffedNodeTable(diffs DiffResult) error {
table.SetAlignment(tablewriter.ALIGN_LEFT)
table.Render()
return nil

}

func PrintDiffedPathTable(diffs DiffResult) error {
Expand Down

0 comments on commit a01cd3e

Please sign in to comment.