fix: add missing return
This commit is contained in:
parent
6e34f052f3
commit
266f9ada0e
|
@ -294,7 +294,7 @@ func (p *P2PImpl) readNodeVotes(nodeId *encoding.NodeId) (interfaces.NodeVotes,
|
|||
var score interfaces.NodeVotes
|
||||
err := msgpack.Unmarshal(node, &score)
|
||||
if err != nil {
|
||||
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return score, nil
|
||||
|
|
Loading…
Reference in New Issue