This commit is contained in:
jguer 2022-11-08 01:37:54 +01:00
parent 742b6ad79c
commit 6cbf00c5a7
No known key found for this signature in database
GPG Key ID: 6D6CC9BEA8556B35

View File

@ -107,7 +107,9 @@ func NewGrapher(dbExecutor db.Executor, aurCache *metadata.AURCache,
}
}
func (g *Grapher) GraphFromTargets(ctx context.Context, graph *topo.Graph[string, *InstallInfo], targets []string) (*topo.Graph[string, *InstallInfo], error) {
func (g *Grapher) GraphFromTargets(ctx context.Context,
graph *topo.Graph[string, *InstallInfo], targets []string,
) (*topo.Graph[string, *InstallInfo], error) {
if graph == nil {
graph = topo.New[string, *InstallInfo]()
}
@ -140,7 +142,6 @@ func (g *Grapher) GraphFromTargets(ctx context.Context, graph *topo.Graph[string
}
}
fmt.Println(graph)
return graph, nil
}