chore(yay): remove unnecessary Graph initialization (#2251)

Just an additional correction to one of my commits.
This commit is contained in:
smolx 2023-07-26 10:28:23 +02:00 committed by GitHub
parent 5995e55ddb
commit 688434b242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,8 +84,7 @@ func installLocalPKGBUILD(
grapher := dep.NewGrapher(dbExecutor, aurCache, false, settings.NoConfirm,
cmdArgs.ExistsDouble("d", "nodeps"), noCheck, cmdArgs.ExistsArg("needed"),
config.Runtime.Logger.Child("grapher"))
graph := dep.NewGraph()
graph, err := grapher.GraphFromSrcInfos(ctx, graph, srcInfos)
graph, err := grapher.GraphFromSrcInfos(ctx, nil, srcInfos)
if err != nil {
return err
}