Skip to content

Commit

Permalink
fix: don't panic if there's no config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nadilas committed Mar 28, 2024
1 parent 8a9fbe7 commit 5bdc8d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cli/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ func readConfig() (*config, error) {
viper.AddConfigPath(home)
if err = viper.ReadInConfig(); err == nil {
fmt.Println("Using config file:", viper.ConfigFileUsed())
} else {
panic(err)
}

// Unmarshal config into struct
Expand Down

0 comments on commit 5bdc8d1

Please sign in to comment.