Skip to content

Commit

Permalink
Rename function to clarify it's looking for a solve node, not just an…
Browse files Browse the repository at this point in the history
…y named node.
  • Loading branch information
mitchell-as committed Oct 8, 2024
1 parent 683a457 commit bdf9fd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/buildscript/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func isSolveFuncName(name string) bool {
return name == solveFuncName || name == solveLegacyFuncName
}

func (b *BuildScript) getTargetNode(target ...string) (*Value, error) {
func (b *BuildScript) getTargetSolveNode(target ...string) (*Value, error) {
if len(target) == 0 {
for _, assignment := range b.raw.Assignments {
if assignment.Key != mainKey {
Expand Down Expand Up @@ -203,7 +203,7 @@ func (b *BuildScript) getTargetNode(target ...string) (*Value, error) {
}

func (b *BuildScript) getSolveNode(target ...string) (*Value, error) {
node, err := b.getTargetNode(target...)
node, err := b.getTargetSolveNode(target...)
if err != nil {
return nil, errs.Wrap(err, "Could not get target node")
}
Expand Down

0 comments on commit bdf9fd5

Please sign in to comment.