mirror of
https://github.com/skadimoolam/go-vue-todos.git
synced 2026-05-15 06:06:03 -06:00
changed err2 to err
This commit is contained in:
parent
183c1ca184
commit
a9bce9d3dd
1 changed files with 3 additions and 3 deletions
|
|
@ -91,9 +91,9 @@ func DeleteTask(db *sql.DB, id int) (int64, error) {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
result, err2 := stmt.Exec(id)
|
||||
if err2 != nil {
|
||||
panic(err2)
|
||||
result, err := stmt.Exec(id)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return result.RowsAffected()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue