mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 13:19:02 +08:00
fix: gen nil config file
Signed-off-by: zu1k <i@zu1k.com>
This commit is contained in:
parent
c2a1ad8565
commit
40e1623c4b
@ -17,10 +17,7 @@ func init() {
|
||||
|
||||
err := viper.ReadInConfig()
|
||||
if err != nil {
|
||||
err = viper.SafeWriteConfig()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
dbList := db.List{}
|
||||
|
Loading…
Reference in New Issue
Block a user