File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ func TestBoolean(t *testing.T) {
563
563
t .Fatalf ("Expected 1 row but %v" , counter )
564
564
}
565
565
566
- if id != 1 && fbool != true {
566
+ if id != 1 && ! fbool {
567
567
t .Fatalf ("Value for id 1 should be %v, not %v" , bool1 , fbool )
568
568
}
569
569
@@ -585,7 +585,7 @@ func TestBoolean(t *testing.T) {
585
585
t .Fatalf ("Expected 1 row but %v" , counter )
586
586
}
587
587
588
- if id != 2 && fbool != false {
588
+ if id != 2 && fbool {
589
589
t .Fatalf ("Value for id 2 should be %v, not %v" , bool2 , fbool )
590
590
}
591
591
@@ -1410,10 +1410,7 @@ func BenchmarkCustomFunctions(b *testing.B) {
1410
1410
sql .Register ("sqlite3_BenchmarkCustomFunctions" , & SQLiteDriver {
1411
1411
ConnectHook : func (conn * SQLiteConn ) error {
1412
1412
// 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 )
1417
1414
},
1418
1415
})
1419
1416
})
You can’t perform that action at this time.
0 commit comments