Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Jul 21, 2023
1 parent 93ae095 commit 851f16b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion x/wasm/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ var (
ErrInvalidEvent = sdkErrors.Register(DefaultCodespace, 21, "invalid event")

// error if an address does not belong to a contract (just for registration)
_ = sdkErrors.Register(DefaultCodespace, 22, "no such contract")
// CosmWasm/wasmd#1161 would update this line.
_ = sdkErrors.Register(DefaultCodespace, 22, "no such contract") //nolint:errcheck

// ErrNotAJSONObject error if given data is not a JSON object
ErrNotAJSONObject = sdkErrors.Register(DefaultCodespace, 23, "not a JSON object")
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/types/test_fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GenesisFixture(mutators ...func(*GenesisState)) GenesisState {

func randBytes(n int) []byte {
r := make([]byte, n)
rand.Read(r)
rand.Read(r) //nolint:staticcheck
return r
}

Expand Down

0 comments on commit 851f16b

Please sign in to comment.