Skip to content

Commit f774a98

Browse files
authored
Remove unused field in connectionVisitor (#307)
This removes a *constructorNode field that wasn't being used at all in the connectionVisitor struct.
1 parent a15d198 commit f774a98

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

provide.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ func (s *Scope) findAndValidateResults(n *constructorNode) (map[key]struct{}, er
531531
keyPaths := make(map[key]string)
532532
walkResult(n.ResultList(), connectionVisitor{
533533
s: s,
534-
n: n,
535534
err: &err,
536535
keyPaths: keyPaths,
537536
})
@@ -551,7 +550,6 @@ func (s *Scope) findAndValidateResults(n *constructorNode) (map[key]struct{}, er
551550
// produced by that node.
552551
type connectionVisitor struct {
553552
s *Scope
554-
n *constructorNode
555553

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

0 commit comments

Comments
 (0)