fix: error lint

This commit is contained in:
Rogee
2024-11-28 19:31:51 +08:00
parent 554db07758
commit edd1cc20fa
3 changed files with 2 additions and 16 deletions

View File

@@ -6,5 +6,6 @@ import (
)
func TruncateTable(db *sql.DB, table string) {
db.Exec(fmt.Sprintf("TRUNCATE TABLE %s RESTART IDENTITY", table))
_, err := db.Exec(fmt.Sprintf("TRUNCATE TABLE %s RESTART IDENTITY", table))
_ = err
}