Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
internal/suggest: remove unnecessary candidates field
Browse files Browse the repository at this point in the history
  • Loading branch information
mdempsky committed Jul 27, 2018
1 parent 1428475 commit 00e7f5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/suggest/candidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func classifyObject(obj types.Object) string {
}

type candidateCollector struct {
candidates []Candidate
exact []types.Object
badcase []types.Object
localpkg *types.Package
Expand All @@ -90,7 +89,7 @@ func (b *candidateCollector) getCandidates() []Candidate {
objs = b.badcase
}

res := b.candidates
var res []Candidate
for _, obj := range objs {
res = append(res, b.asCandidate(obj))
}
Expand Down

0 comments on commit 00e7f5a

Please sign in to comment.