Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
5ceafd556a |
@ -56,7 +56,10 @@ func initConfig() {
|
|||||||
viper.AutomaticEnv()
|
viper.AutomaticEnv()
|
||||||
|
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
|
if err == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user