ci: fix make lint reported issues (#19059)

This commit is contained in:
levisyin 2024-01-15 21:35:31 +08:00 committed by GitHub
parent 22683c5936
commit d23733e16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View File

@ -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.

View File

@ -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.

View File

@ -180,7 +180,6 @@ func (itr *iterator) Next() {
}
itr.valid = false
return
}
func (itr *iterator) Valid() bool {

View File

@ -152,7 +152,6 @@ func (itr *iterator) Next() {
}
itr.valid = false
return
}
func (itr *iterator) Error() error {