✏️ make lint happy

This commit is contained in:
fumiama
2021-12-19 16:04:14 +08:00
parent 4ad7ff7971
commit 5ff9069ff2
13 changed files with 26 additions and 21 deletions

View File

@@ -366,10 +366,10 @@ func (db *Sqlite) Count(table string) (num int, err error) {
return num, rows.Err()
}
if rows.Next() {
rows.Scan(&num)
err = rows.Scan(&num)
}
rows.Close()
return num, nil
return num, err
}
// tags 反射 返回结构体对象的 tag 数组