From 1c13db7649e7f8eafa746f8d969db8241d19e964 Mon Sep 17 00:00:00 2001 From: cce <51567+cce@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:04:51 -0400 Subject: [PATCH] lint: enable govet shadow linter and resolve linter warnings (#5261) --- stateproof/prover.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stateproof/prover.go b/stateproof/prover.go index 64484ce35c..f3a8a43bca 100644 --- a/stateproof/prover.go +++ b/stateproof/prover.go @@ -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)) {