From c46327f585d68f71e75d2c5e707845afd5fd7df1 Mon Sep 17 00:00:00 2001 From: Mario Trangoni Date: Wed, 21 Nov 2018 11:21:52 +0100 Subject: [PATCH] sqlite3_test.go: Simplify return err --- sqlite3_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sqlite3_test.go b/sqlite3_test.go index b295ddd..a67cf42 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -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:")