Skip to content

Commit

Permalink
Fix relay module (#907)
Browse files Browse the repository at this point in the history
* remove not necessary check
  • Loading branch information
emmanuelm41 committed Jan 31, 2022
1 parent d4b803a commit 881cb50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,9 @@ func (h *httpClient) Get(ctx context.Context, round uint64) (client.Result, erro
resC <- httpGetResponse{nil, fmt.Errorf("decoding response: %w", err)}
return
}
if len(randResp.Sig) == 0 || len(randResp.PreviousSignature) == 0 {
resC <- httpGetResponse{nil, fmt.Errorf("insufficient response")}

if len(randResp.Sig) == 0 {
resC <- httpGetResponse{nil, fmt.Errorf("insufficient response - signature is not present")}
return
}

Expand Down

0 comments on commit 881cb50

Please sign in to comment.