Skip to content

Commit 28e6f6d

Browse files
committed
fix all gosimple issues
1 parent 8476602 commit 28e6f6d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sqlite3_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ func TestBoolean(t *testing.T) {
563563
t.Fatalf("Expected 1 row but %v", counter)
564564
}
565565

566-
if id != 1 && fbool != true {
566+
if id != 1 && !fbool {
567567
t.Fatalf("Value for id 1 should be %v, not %v", bool1, fbool)
568568
}
569569

@@ -585,7 +585,7 @@ func TestBoolean(t *testing.T) {
585585
t.Fatalf("Expected 1 row but %v", counter)
586586
}
587587

588-
if id != 2 && fbool != false {
588+
if id != 2 && fbool {
589589
t.Fatalf("Value for id 2 should be %v, not %v", bool2, fbool)
590590
}
591591

@@ -1410,10 +1410,7 @@ func BenchmarkCustomFunctions(b *testing.B) {
14101410
sql.Register("sqlite3_BenchmarkCustomFunctions", &SQLiteDriver{
14111411
ConnectHook: func(conn *SQLiteConn) error {
14121412
// Impure function to force sqlite to reexecute it each time.
1413-
if err := conn.RegisterFunc("custom_add", customAdd, false); err != nil {
1414-
return err
1415-
}
1416-
return nil
1413+
return conn.RegisterFunc("custom_add", customAdd, false)
14171414
},
14181415
})
14191416
})

0 commit comments

Comments
 (0)