Skip to content

Commit

Permalink
修正部分代码引发reviewdog报警的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
PaienNate authored Dec 31, 2024
1 parent c81303f commit 2c293fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate/v150_attrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ CREATE TABLE IF NOT EXISTS attrs (
func V150Upgrade() error {
dbDataPath, _ := filepath.Abs("./data/default/data.db")
if _, err := os.Stat(dbDataPath); errors.Is(err, os.ErrNotExist) {
log.Error("未找到旧版本数据库,若您启动全新海豹,可安全忽略。")
return nil
log.Error("未找到旧版本数据库,若您启动全新海豹,可安全忽略。")
return nil
}

db, err := openDB(dbDataPath)
Expand Down

0 comments on commit 2c293fa

Please sign in to comment.