From 638f7ba19702d536318fe2407fee78cae4052885 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 1 May 2019 19:57:18 -0400 Subject: [PATCH] comment.go: omit state if empty --- api/comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/comment.go b/api/comment.go index 0326e18..11a3f4e 100644 --- a/api/comment.go +++ b/api/comment.go @@ -13,7 +13,7 @@ type comment struct { Html string `json:"html"` ParentHex string `json:"parentHex"` Score int `json:"score"` - State string `json:"state"` + State string `json:"state,omitempty"` CreationDate time.Time `json:"creationDate"` Direction int `json:"direction"` }