rpc/server: fix ineffassign warning
This commit is contained in:
parent
d3ea720afb
commit
973ed8c1f6
1 changed files with 3 additions and 0 deletions
|
@ -915,6 +915,9 @@ func (s *Server) getProof(ps request.Params) (interface{}, *response.Error) {
|
|||
}
|
||||
skey := makeStorageKey(cs.ID, key)
|
||||
proof, err := s.chain.GetStateModule().GetStateProof(root, skey)
|
||||
if err != nil {
|
||||
return nil, response.NewInternalServerError("failed to get proof", err)
|
||||
}
|
||||
return &result.ProofWithKey{
|
||||
Key: skey,
|
||||
Proof: proof,
|
||||
|
|
Loading…
Reference in a new issue