diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-30 17:23:00 -0600 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2018-01-30 15:23:00 -0800 |
commit | 0c8968fb8df4ce302c928118cd81e75f5bef2861 (patch) | |
tree | b17a2ae5afc98f7ce3daaea10a165d9d647c47c5 /model/command_response.go | |
parent | ac2e42a480c5bba2e5128017218b0fa1bed8e836 (diff) | |
download | chat-0c8968fb8df4ce302c928118cd81e75f5bef2861.tar.gz chat-0c8968fb8df4ce302c928118cd81e75f5bef2861.tar.bz2 chat-0c8968fb8df4ce302c928118cd81e75f5bef2861.zip |
unnamed return (#8170)
Diffstat (limited to 'model/command_response.go')
-rw-r--r-- | model/command_response.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/model/command_response.go b/model/command_response.go index a3a171ce4..cac7e8452 100644 --- a/model/command_response.go +++ b/model/command_response.go @@ -27,12 +27,8 @@ type CommandResponse struct { } func (o *CommandResponse) ToJson() string { - b, err := json.Marshal(o) - if err != nil { - return "" - } else { - return string(b) - } + b, _ := json.Marshal(o) + return string(b) } func CommandResponseFromHTTPBody(contentType string, body io.Reader) *CommandResponse { |