style: gofumpt linting (#15605)

This commit is contained in:
Marko
2023-03-30 06:27:38 +00:00
committed by GitHub
parent 24344fb382
commit 1f2875d445
56 changed files with 97 additions and 97 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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,
+4 -4
View File
@@ -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",
+1 -1
View File
@@ -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)