ci: fix make lint reported issues (#19059)
This commit is contained in:
parent
22683c5936
commit
d23733e16c
@ -3,8 +3,9 @@ package store
|
||||
import (
|
||||
"io"
|
||||
|
||||
corestore "cosmossdk.io/core/store"
|
||||
ics23 "github.com/cosmos/ics23/go"
|
||||
|
||||
corestore "cosmossdk.io/core/store"
|
||||
)
|
||||
|
||||
// Reader wraps the Has and Get method of a backing data store.
|
||||
|
||||
@ -163,7 +163,7 @@ func ProofFromByteSlices(leaves [][]byte, index int) (rootHash []byte, inners []
|
||||
// saved until the next iteration).
|
||||
if index < n-1 || index&1 == 1 {
|
||||
inner := &ics23.InnerOp{Hash: ics23.HashOp_SHA256}
|
||||
//If proof index is even then child is from left, suffix is populated
|
||||
// If proof index is even then child is from left, suffix is populated
|
||||
// otherwise, child is from right and the prefix is populated.
|
||||
if index&1 == 0 {
|
||||
// inner op(prefix=0x01 | child | suffix=leaves[index+1])
|
||||
@ -190,7 +190,7 @@ func ProofFromByteSlices(leaves [][]byte, index int) (rootHash []byte, inners []
|
||||
}
|
||||
|
||||
rootHash = leaves[0]
|
||||
return
|
||||
return rootHash, inners
|
||||
}
|
||||
|
||||
// ConvertCommitmentOp converts the given merkle proof into an CommitmentOp.
|
||||
|
||||
@ -180,7 +180,6 @@ func (itr *iterator) Next() {
|
||||
}
|
||||
|
||||
itr.valid = false
|
||||
return
|
||||
}
|
||||
|
||||
func (itr *iterator) Valid() bool {
|
||||
|
||||
@ -152,7 +152,6 @@ func (itr *iterator) Next() {
|
||||
}
|
||||
|
||||
itr.valid = false
|
||||
return
|
||||
}
|
||||
|
||||
func (itr *iterator) Error() error {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user