forked from mirror/go-sqlcipher
sqlite3_test.go: Simplify return err
This commit is contained in:
parent
b76b90f754
commit
c46327f585
|
@ -1299,10 +1299,7 @@ func TestAggregatorRegistration(t *testing.T) {
|
||||||
|
|
||||||
sql.Register("sqlite3_AggregatorRegistration", &SQLiteDriver{
|
sql.Register("sqlite3_AggregatorRegistration", &SQLiteDriver{
|
||||||
ConnectHook: func(conn *SQLiteConn) error {
|
ConnectHook: func(conn *SQLiteConn) error {
|
||||||
if err := conn.RegisterAggregator("customSum", customSum, true); err != nil {
|
return conn.RegisterAggregator("customSum", customSum, true)
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
db, err := sql.Open("sqlite3_AggregatorRegistration", ":memory:")
|
db, err := sql.Open("sqlite3_AggregatorRegistration", ":memory:")
|
||||||
|
|
Loading…
Reference in New Issue