sqlite3_test.go: Simplify return err

This commit is contained in:
Mario Trangoni 2018-11-21 11:21:52 +01:00
parent b76b90f754
commit c46327f585
1 changed files with 1 additions and 4 deletions

View File

@ -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:")