Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed May 1, 2024
1 parent af83713 commit 4faa0df
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cmd/starsd/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func initTestnet(cmd *cobra.Command, args testnetArguments, mbm module.BasicMana

for i := 0; i < args.numValidators; i++ {
nodeDirName := fmt.Sprintf("%s%d", "node", i)
nodeDir := filepath.Join(args.outputDir, nodeDirName, ".starsd")
nodeDir := filepath.Join(args.outputDir, nodeDirName, "starsd")
gentxsDir := filepath.Join(args.outputDir, "gentxs")

// for docker
Expand Down Expand Up @@ -337,7 +337,7 @@ func initTestnet(cmd *cobra.Command, args testnetArguments, mbm module.BasicMana

err = collectGenFiles(
clientCtx, args.chainID, nodeIDs, valPubKeys, args.numValidators,
args.outputDir, "node", ".starsd",
args.outputDir, "node", "starsd",
)
if err != nil {
return err
Expand Down Expand Up @@ -421,11 +421,7 @@ func writeFile(name, dir string, contents []byte) error {
return fmt.Errorf("could not create directory %q: %w", dir, err)
}

if err := os.WriteFile(file, contents, 0o600); err != nil {
return err
}

return nil
return os.WriteFile(file, contents, 0o600)
}

func initGenFiles(
Expand Down

0 comments on commit 4faa0df

Please sign in to comment.