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