Fix logic error: err != nil -> err == nil

This commit is contained in:
Josh Rickmar 2013-08-21 15:26:00 -04:00
parent cc13f2eed5
commit 4f4807a003

View file

@ -207,7 +207,7 @@ func ReplySuccess(reply chan []byte, id interface{}, result interface{}) {
Result: result,
Id: &id,
}
if mr, err := json.Marshal(r); err != nil {
if mr, err := json.Marshal(r); err == nil {
reply <- mr
}
}