Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
expertdicer committed Jan 28, 2024
2 parents 31b2e55 + 6ce57fa commit 9a0785a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/initialization/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func initGenesis(chain *internalChain, forkHeight int) error {

// write the updated genesis file to each validator
for _, val := range chain.nodes {
if err := util.WriteFile(filepath.Join(val.configDir(), "config", "genesis.json"), genesisJSON); err != nil {
if err := util.WritePublicFile(filepath.Join(val.configDir(), "config", "genesis.json"), genesisJSON); err != nil {
return err
}
}
Expand Down
9 changes: 0 additions & 9 deletions tests/e2e/util/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ func CopyFile(src, dst string) (int64, error) {
return nBytes, err
}

func WriteFile(path string, body []byte) error {
_, err := os.Create(path)
if err != nil {
return err
}

return os.WriteFile(path, body, 0o600)
}

func WritePublicFile(path string, body []byte) error {
_, err := os.Create(path)
if err != nil {
Expand Down

0 comments on commit 9a0785a

Please sign in to comment.