mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 13:13:41 +08:00
🐛 fix: config file reading logic error
This commit is contained in:
@@ -45,8 +45,8 @@ func InitCli() {
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if Config != nil && !utils.IsFileExist(*Config) {
|
||||
panic("Config file not found")
|
||||
if !utils.IsFileExist(*Config) {
|
||||
return
|
||||
}
|
||||
|
||||
viper.SetConfigFile(*Config)
|
||||
|
||||
Reference in New Issue
Block a user