comment.go: omit state if empty

This commit is contained in:
Adhityaa Chandrasekar 2019-05-01 19:57:18 -04:00
parent e1effd2a45
commit 638f7ba197

View File

@ -13,7 +13,7 @@ type comment struct {
Html string `json:"html"` Html string `json:"html"`
ParentHex string `json:"parentHex"` ParentHex string `json:"parentHex"`
Score int `json:"score"` Score int `json:"score"`
State string `json:"state"` State string `json:"state,omitempty"`
CreationDate time.Time `json:"creationDate"` CreationDate time.Time `json:"creationDate"`
Direction int `json:"direction"` Direction int `json:"direction"`
} }