Skip to content
Snippets Groups Projects
Commit 7eed40ba authored by Luca Moser's avatar Luca Moser
Browse files

fixes wrong err check in VoterServer

parent a9f0b29e
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ func (vs *VoterServer) Opinion(ctx context.Context, req *QueryRequest) (*QueryRe
for i, id := range req.Id {
// check whether there's an ongoing vote
opinion, err := vs.voter.IntermediateOpinion(id)
if err != nil {
if err == nil {
reply.Opinion[i] = int32(opinion)
continue
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment