Browse Source

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

Just an additional correction to one of my commits.
smolx 1 year ago
parent
commit
688434b242
1 changed files with 1 additions and 2 deletions
  1. 1 2
      local_install.go

+ 1 - 2
local_install.go

@@ -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
 	}