style: gofumpt linting (#15605)
This commit is contained in:
@@ -371,7 +371,7 @@ func (s *argsTestSuite) TestGetConfigFromEnv() {
|
||||
absPath, perr := filepath.Abs(relPath)
|
||||
s.Require().NoError(perr)
|
||||
|
||||
newConfig := func(home, name string, downloadBin, restartUpgrade bool, restartDelay int, skipBackup bool, dataBackupPath string, interval int, preupgradeMaxRetries int, disableLogs bool) *Config {
|
||||
newConfig := func(home, name string, downloadBin, restartUpgrade bool, restartDelay int, skipBackup bool, dataBackupPath string, interval, preupgradeMaxRetries int, disableLogs bool) *Config {
|
||||
return &Config{
|
||||
Home: home,
|
||||
Name: name,
|
||||
|
||||
@@ -33,7 +33,7 @@ type ChainInfo struct {
|
||||
Config *ChainConfig
|
||||
}
|
||||
|
||||
func NewChainInfo(configDir string, chain string, config *ChainConfig) *ChainInfo {
|
||||
func NewChainInfo(configDir, chain string, config *ChainConfig) *ChainInfo {
|
||||
return &ChainInfo{
|
||||
ConfigDir: configDir,
|
||||
Chain: chain,
|
||||
|
||||
@@ -17,9 +17,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
flagInsecure string = "insecure"
|
||||
flagUpdate string = "update"
|
||||
flagConfig string = "config"
|
||||
flagInsecure = "insecure"
|
||||
flagUpdate = "update"
|
||||
flagConfig = "config"
|
||||
)
|
||||
|
||||
func RootCommand() (*cobra.Command, error) {
|
||||
@@ -135,7 +135,7 @@ func RemoteCommand(config *Config, configDir string) ([]*cobra.Command, error) {
|
||||
return commands, nil
|
||||
}
|
||||
|
||||
func RemoteErrorCommand(config *Config, configDir string, chain string, chainConfig *ChainConfig, err error) *cobra.Command {
|
||||
func RemoteErrorCommand(config *Config, configDir, chain string, chainConfig *ChainConfig, err error) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: chain,
|
||||
Short: "Unable to load data",
|
||||
|
||||
@@ -433,7 +433,7 @@ func (c converter) Amounts(ownedCoins []sdk.Coin, availableCoins sdk.Coins) []*r
|
||||
|
||||
// AddOperationIndexes adds the indexes to operations adhering to specific rules:
|
||||
// operations related to messages will be always before than the balance ones
|
||||
func AddOperationIndexes(msgOps []*rosettatypes.Operation, balanceOps []*rosettatypes.Operation) (finalOps []*rosettatypes.Operation) {
|
||||
func AddOperationIndexes(msgOps, balanceOps []*rosettatypes.Operation) (finalOps []*rosettatypes.Operation) {
|
||||
lenMsgOps := len(msgOps)
|
||||
lenBalanceOps := len(balanceOps)
|
||||
finalOps = make([]*rosettatypes.Operation, 0, lenMsgOps+lenBalanceOps)
|
||||
|
||||
Reference in New Issue
Block a user