Skip to content

Commit

Permalink
Merge branch 'master' into use_name
Browse files Browse the repository at this point in the history
  • Loading branch information
raullenchai authored Jul 13, 2022
2 parents 9cb9130 + 7b8478e commit f57bb92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ioctl/newcmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ func InitConfig() (config.Config, string, error) {
// Load or reset config file
err = info.loadConfig()
if os.IsNotExist(err) {
err = info.reset() // Config file doesn't exist
} else if err != nil {
err = info.reset()
}
if err != nil {
return info.readConfig, info.defaultConfigFile, err
}

Expand Down

0 comments on commit f57bb92

Please sign in to comment.