Skip to content

Commit

Permalink
fix: gen nil config file
Browse files Browse the repository at this point in the history
Signed-off-by: zu1k <i@zu1k.com>
  • Loading branch information
zu1k committed Jul 21, 2022
1 parent ecf96b3 commit a6c881c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/migration/v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ func init() {

err := viper.ReadInConfig()
if err != nil {
err = viper.SafeWriteConfig()
if err != nil {
panic(err)
}
return
}

dbList := db.List{}
Expand Down

0 comments on commit a6c881c

Please sign in to comment.