summaryrefslogtreecommitdiffstats
path: root/model/push_response.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/push_response.go')
-rw-r--r--model/push_response.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/model/push_response.go b/model/push_response.go
index 095986f3e..1434a2b11 100644
--- a/model/push_response.go
+++ b/model/push_response.go
@@ -38,11 +38,8 @@ func NewErrorPushResponse(message string) PushResponse {
}
func (me *PushResponse) ToJson() string {
- if b, err := json.Marshal(me); err != nil {
- return ""
- } else {
- return string(b)
- }
+ b, _ := json.Marshal(me)
+ return string(b)
}
func PushResponseFromJson(data io.Reader) PushResponse {