diff --git a/internal/commands/commands.go b/internal/commands/commands.go index e1e1b32..dbdcd13 100644 --- a/internal/commands/commands.go +++ b/internal/commands/commands.go @@ -56,7 +56,10 @@ func initConfig() { viper.AutomaticEnv() err := viper.ReadInConfig() - if _, ok := err.(viper.ConfigFileNotFoundError); !ok { + if err == nil { + return + } + if _, ok := err.(viper.ConfigFileNotFoundError); !ok { panic(err) } }