Skip to content

Commit

Permalink
linting 🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Aug 13, 2024
1 parent ec575f8 commit 1036dd1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ var (
hubgentypes.ModuleName: {authtypes.Minter},
denommetadatamoduletypes.ModuleName: nil,
gaslesstypes.ModuleName: nil,
callbackTypes.ModuleName: nil,
callbackTypes.ModuleName: nil,
}

// module accounts that are allowed to receive tokens
maccCanReceiveTokens = []string{
maccCanReceiveTokens = []string{ //nolint
distrtypes.ModuleName,
hubgentypes.ModuleName,
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/testing/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func NewTestChain(t *testing.T, chainIdx int, opts ...interface{}) *TestChain {
case TestChainConfigOption:
chainCfgOpts = append(chainCfgOpts, opt)
case TestChainConsensusParamsOption:
consensusParamsOpts = append(consensusParamsOpts, opt)
consensusParamsOpts = append(consensusParamsOpts, opt) //nolint
case TestChainGenesisOption:
genStateOpts = append(genStateOpts, opt)
default:
Expand Down
2 changes: 1 addition & 1 deletion rollappd/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func startInProcess(ctx *server.Context, clientCtx client.Context, nodeConfig *d
grpcAddress := fmt.Sprintf("127.0.0.1:%s", port)

// If grpc is enabled, configure grpc client for grpc gateway.
grpcClient, err := grpc.Dial(
grpcClient, err := grpc.Dial( //nolint
grpcAddress,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultCallOptions(
Expand Down
6 changes: 1 addition & 5 deletions x/callback/keeper/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,5 @@ func isAuthorizedToModify(ctx sdk.Context, k Keeper, contractAddress sdk.AccAddr
}

contractInfo := k.wasmKeeper.GetContractInfo(ctx, contractAddress)
if strings.EqualFold(sender, contractInfo.Admin) { // Admin of the contract can modify its callbacks
return true
}

return false
return strings.EqualFold(sender, contractInfo.Admin) // Admin of the contract can modify its callbacks
}
6 changes: 1 addition & 5 deletions x/cwerrors/keeper/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,5 @@ func isAuthorizedToSubscribe(ctx sdk.Context, k Keeper, contractAddress sdk.AccA
}

contractInfo := k.wasmKeeper.GetContractInfo(ctx, contractAddress)
if strings.EqualFold(sender, contractInfo.Admin) { // Admin of the contract can set subscriptions
return true
}

return false
return strings.EqualFold(sender, contractInfo.Admin) // Admin of the contract can set subscriptions
}

0 comments on commit 1036dd1

Please sign in to comment.