aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_test.go
diff options
context:
space:
mode:
authorMario Trangoni <mjtrangoni@gmail.com>2018-11-21 11:21:52 +0100
committerMario Trangoni <mjtrangoni@gmail.com>2018-11-21 11:31:05 +0100
commitc46327f585d68f71e75d2c5e707845afd5fd7df1 (patch)
tree4e70421ebbe603740a772ba56237701ea030700d /sqlite3_test.go
parentFix misspell issues. (diff)
downloadgolite-c46327f585d68f71e75d2c5e707845afd5fd7df1.tar.gz
golite-c46327f585d68f71e75d2c5e707845afd5fd7df1.tar.xz
sqlite3_test.go: Simplify return err
Diffstat (limited to 'sqlite3_test.go')
-rw-r--r--sqlite3_test.go5
1 files changed, 1 insertions, 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:")