Skip to content

Commit

Permalink
Fix ineffectual assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy007 committed Jun 7, 2016
1 parent 5935a17 commit 38645ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/proxy.go
Expand Up @@ -249,7 +249,7 @@ func (cs *Session) handleMessage(s *ProxyServer, r *http.Request, req *JSONRpcRe
}
reply, errReply := s.handleSubmitRPC(cs, login, vars["id"], params)
if errReply != nil {
err = cs.sendError(req.Id, errReply)
cs.sendError(req.Id, errReply)
break
}
cs.sendResult(req.Id, &reply)
Expand Down
3 changes: 3 additions & 0 deletions rpc/rpc.go
Expand Up @@ -212,6 +212,9 @@ func (r *RPCClient) GetPeerCount() (int64, error) {
return 0, errors.New(rpcResp.Error["message"].(string))
}
err = json.Unmarshal(*rpcResp.Result, &reply)
if err != nil {
return 0, err
}
return strconv.ParseInt(strings.Replace(reply, "0x", "", -1), 16, 64)
}

Expand Down

0 comments on commit 38645ca

Please sign in to comment.