Skip to content

Commit

Permalink
lint: enable govet shadow linter and resolve linter warnings (algoran…
Browse files Browse the repository at this point in the history
  • Loading branch information
cce authored Jun 1, 2023
1 parent 78c9c05 commit 1c13db7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stateproof/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ func (b *Prover) CreateProof() (*StateProof, error) {
revealsSequence := make([]uint64, nr)
for j := uint64(0); j < nr; j++ {
coin := coinHash.getNextCoin()
pos, err := b.coinIndex(coin)
if err != nil {
return nil, err
pos, idxErr := b.coinIndex(coin)
if idxErr != nil {
return nil, idxErr
}

if pos >= uint64(len(b.Participants)) {
Expand Down

0 comments on commit 1c13db7

Please sign in to comment.