Skip to content

Commit

Permalink
Remove unused field in connectionVisitor (#307)
Browse files Browse the repository at this point in the history
This removes a *constructorNode field that wasn't being used at all
in the connectionVisitor struct.
  • Loading branch information
sywhang authored Dec 30, 2021
1 parent a15d198 commit f774a98
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions provide.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,6 @@ func (s *Scope) findAndValidateResults(n *constructorNode) (map[key]struct{}, er
keyPaths := make(map[key]string)
walkResult(n.ResultList(), connectionVisitor{
s: s,
n: n,
err: &err,
keyPaths: keyPaths,
})
Expand All @@ -551,7 +550,6 @@ func (s *Scope) findAndValidateResults(n *constructorNode) (map[key]struct{}, er
// produced by that node.
type connectionVisitor struct {
s *Scope
n *constructorNode

// If this points to a non-nil value, we've already encountered an error
// and should stop traversing.
Expand Down

0 comments on commit f774a98

Please sign in to comment.