forked from mirror/go-sqlcipher
Fix go lint
This commit is contained in:
parent
a7de802f90
commit
c659bdbdea
|
@ -145,12 +145,12 @@ func TestUpdate(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Failed to update record:", err)
|
t.Fatal("Failed to update record:", err)
|
||||||
}
|
}
|
||||||
lastId, err := res.LastInsertId()
|
lastID, err := res.LastInsertId()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Failed to get LastInsertId:", err)
|
t.Fatal("Failed to get LastInsertId:", err)
|
||||||
}
|
}
|
||||||
if expected != lastId {
|
if expected != lastID {
|
||||||
t.Errorf("Expected %q for last Id, but %q:", expected, lastId)
|
t.Errorf("Expected %q for last Id, but %q:", expected, lastID)
|
||||||
}
|
}
|
||||||
affected, _ = res.RowsAffected()
|
affected, _ = res.RowsAffected()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -210,12 +210,12 @@ func TestDelete(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Failed to delete record:", err)
|
t.Fatal("Failed to delete record:", err)
|
||||||
}
|
}
|
||||||
lastId, err := res.LastInsertId()
|
lastID, err := res.LastInsertId()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Failed to get LastInsertId:", err)
|
t.Fatal("Failed to get LastInsertId:", err)
|
||||||
}
|
}
|
||||||
if expected != lastId {
|
if expected != lastID {
|
||||||
t.Errorf("Expected %q for last Id, but %q:", expected, lastId)
|
t.Errorf("Expected %q for last Id, but %q:", expected, lastID)
|
||||||
}
|
}
|
||||||
affected, err = res.RowsAffected()
|
affected, err = res.RowsAffected()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue