Skip to content

Commit

Permalink
lint: remove unnecessary else
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpioborn committed Nov 4, 2024
1 parent 86d6d49 commit 4dae5b0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions x/bet/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ func (AppModuleBasic) GetTxCmd() *cobra.Command {
// transactions deprecated in favor of v2
if testing.Testing() {
return cli.GetTxCmd()
} else {
return nil
}
return nil
}

// GetQueryCmd returns the module's root query command.
Expand Down
3 changes: 1 addition & 2 deletions x/house/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ func (AppModuleBasic) GetTxCmd() *cobra.Command {
// transactions deprecated in favor of v2
if testing.Testing() {
return cli.NewTxCmd()
} else {
return nil
}
return nil
}

// GetQueryCmd returns no root query command for the house module.
Expand Down
3 changes: 1 addition & 2 deletions x/market/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ func (AppModuleBasic) GetTxCmd() *cobra.Command {
// transactions deprecated in favor of v2
if testing.Testing() {
return cli.GetTxCmd()
} else {
return nil
}
return nil
}

// GetQueryCmd returns the module's root query command.
Expand Down
3 changes: 1 addition & 2 deletions x/ovm/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ func (AppModuleBasic) GetTxCmd() *cobra.Command {
// transactions deprecated in favor of v2
if testing.Testing() {
return cli.GetTxCmd()
} else {
return nil
}
return nil
}

// GetQueryCmd returns the module's root query command.
Expand Down
3 changes: 1 addition & 2 deletions x/reward/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ func (a AppModuleBasic) GetTxCmd() *cobra.Command {
// transactions deprecated in favor of v2
if testing.Testing() {
return cli.GetTxCmd()
} else {
return nil
}
return nil
}

// GetQueryCmd returns the root query command for the module. The subcommands of this root command are used by end-users to generate new queries to the subset of the state defined by the module
Expand Down
3 changes: 1 addition & 2 deletions x/subaccount/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ func (AppModuleBasic) GetTxCmd() *cobra.Command {
// transactions deprecated in favor of v2
if testing.Testing() {
return cli.GetTxCmd()
} else {
return nil
}
return nil
}

// GetQueryCmd returns the module's root query command.
Expand Down

0 comments on commit 4dae5b0

Please sign in to comment.