chore(dep): rename pool creator

This commit is contained in:
jguer 2021-12-18 21:56:16 +01:00 committed by J Guerreiro
parent ac13060bfd
commit d02321bdc9
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ type Order struct {
Runtime stringset.StringSet
}
func makeOrder() *Order {
func newOrder() *Order {
return &Order{
make([]Base, 0),
make([]db.IPackage, 0),
@ -24,7 +24,7 @@ func makeOrder() *Order {
}
func GetOrder(dp *Pool, noDeps, noCheckDeps bool) *Order {
do := makeOrder()
do := newOrder()
for _, target := range dp.Targets {
dep := target.DepString()

View file

@ -64,7 +64,7 @@ type Pool struct {
aurClient *aur.Client
}
func makePool(dbExecutor db.Executor, aurClient *aur.Client) *Pool {
func newPool(dbExecutor db.Executor, aurClient *aur.Client) *Pool {
dp := &Pool{
Targets: []Target{},
Explicit: map[string]struct{}{},
@ -393,7 +393,7 @@ func GetPool(ctx context.Context, pkgs []string,
mode parser.TargetMode,
ignoreProviders, noConfirm, provides bool,
rebuild string, splitN int, noDeps bool, noCheckDeps bool, assumeInstalled []string) (*Pool, error) {
dp := makePool(dbExecutor, aurClient)
dp := newPool(dbExecutor, aurClient)
dp.Warnings = warnings
err := dp.ResolveTargets(ctx, pkgs, mode, ignoreProviders, noConfirm, provides,