Skip to content

Commit

Permalink
quick lint while doing other prs (#13726)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Nov 2, 2022
1 parent 97bd2ab commit dc004c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 0 additions & 2 deletions tests/integration/bank/keeper/deterministic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ func (suite *DeterministicTestSuite) TestGRPCQueryTotalSupply() {
initialSupply := res.GetSupply()

rapid.Check(suite.T(), func(t *rapid.T) {

numCoins := rapid.IntRange(1, 3).Draw(t, "num-count")
coins := make(sdk.Coins, 0, numCoins)

Expand Down Expand Up @@ -233,7 +232,6 @@ func (suite *DeterministicTestSuite) TestGRPCQueryTotalSupplyOf() {

req := &banktypes.QuerySupplyOfRequest{Denom: coin.GetDenom()}
testdata.DeterministicIterations(suite.ctx, suite.Require(), req, suite.queryClient.SupplyOf, 0, true)

})

coin := sdk.NewCoin("bar", sdk.NewInt(100))
Expand Down
8 changes: 3 additions & 5 deletions testutil/testdata/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

var (
// iterCount defines the number of iterations to run on each query to test
// determinism.
iterCount = 1000
)
// iterCount defines the number of iterations to run on each query to test
// determinism.
var iterCount = 1000

type QueryImpl struct{}

Expand Down
3 changes: 1 addition & 2 deletions tx/textual/valuerenderer/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
"google.golang.org/protobuf/reflect/protoreflect"
)

type stringValueRenderer struct {
}
type stringValueRenderer struct{}

// NewStringValueRenderer returns a ValueRenderer for protocol buffer string values.
// It renders the string as-is without quotation.
Expand Down
3 changes: 2 additions & 1 deletion types/mempool/mempool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func (tx testTx) GetSignaturesV2() (res []txsigning.SignatureV2, err error) {
res = append(res, txsigning.SignatureV2{
PubKey: testPubKey{address: tx.address},
Data: nil,
Sequence: tx.nonce})
Sequence: tx.nonce,
})

return res, nil
}
Expand Down
1 change: 0 additions & 1 deletion x/gov/migrations/v4/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ func TestMigrateStore(t *testing.T) {
// Check if proposal 2 is in the new store but not proposal 1
require.Nil(t, store.Get(v4.VotingPeriodProposalKey(proposal1.Id)))
require.Equal(t, []byte{0x1}, store.Get(v4.VotingPeriodProposalKey(proposal2.Id)))

}

func getTestProposal() []sdk.Msg {
Expand Down

0 comments on commit dc004c8

Please sign in to comment.