Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez committed Aug 12, 2024
1 parent b3a30f9 commit 93e5abb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions cmd/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,24 @@ func NewCommand() *cobra.Command {
}

var (
avalancheGoBinPath string
numNodes uint32
pluginDir string
globalNodeConfig string
addNodeConfig string
blockchainSpecsStr string
customNodeConfigs string
rootDataDir string
chainConfigs string
upgradeConfigs string
subnetConfigs string
reassignPortsIfUsed bool
dynamicPorts bool
networkID uint32
force bool
inPlace bool
fuji bool
walletPrivateKey string
avalancheGoBinPath string
numNodes uint32
pluginDir string
globalNodeConfig string
addNodeConfig string
blockchainSpecsStr string
customNodeConfigs string
rootDataDir string
chainConfigs string
upgradeConfigs string
subnetConfigs string
reassignPortsIfUsed bool
dynamicPorts bool
networkID uint32
force bool
inPlace bool
fuji bool
walletPrivateKey string
walletPrivateKeyPath string
)

Expand Down Expand Up @@ -309,7 +309,7 @@ func startFunc(*cobra.Command, []string) error {
client.WithNetworkID(networkID),
}

if walletPrivateKeyPath != "" && walletPrivateKey != "" {
if walletPrivateKeyPath != "" && walletPrivateKey != "" {
return fmt.Errorf("only one of wallet-private-key and wallet-private-key-path can be provided")
}
if walletPrivateKey != "" {
Expand Down

0 comments on commit 93e5abb

Please sign in to comment.