forked from mirror/go-sqlite3
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{
|
||||
ConnectHook: func(conn *SQLiteConn) error {
|
||||
if err := conn.RegisterAggregator("customSum", customSum, true); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return conn.RegisterAggregator("customSum", customSum, true)
|
||||
},
|
||||
})
|
||||
db, err := sql.Open("sqlite3_AggregatorRegistration", ":memory:")
|
||||
|
|
Loading…
Reference in New Issue