Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修正部分代码引发reviewdog报警的问题 #1178

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci-lint] reported by reviewdog 🐶
File is not goimports-ed with -local sealdice-core (goimports)


db, err := openDB(dbDataPath)
Expand Down
Loading