Fix logic error: err != nil -> err == nil
This commit is contained in:
parent
cc13f2eed5
commit
4f4807a003
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue