Skip to content

Commit

Permalink
Add omitempty to Candidate.Receiver as it will often be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Dec 25, 2018
1 parent 6b026b0 commit 430efc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/suggest/candidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Candidate struct {
PkgPath string `json:"package"`
Name string `json:"name"`
Type string `json:"type"`
Receiver string `json:"receiver"`
Receiver string `json:"receiver,omitempty"`
}

func (c Candidate) Suggestion() string {
Expand Down

0 comments on commit 430efc4

Please sign in to comment.