aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_test.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2018-11-22 01:46:04 +0900
committerGitHub <noreply@github.com>2018-11-22 01:46:04 +0900
commit0a64ab220b84d82bfcaef4f89c542b033a1ff997 (patch)
tree1bcedda7bee49ef07d3d0ed419796a298f8536a8 /sqlite3_test.go
parentMerge pull request #664 from bk521234/patch-1 (diff)
parentupgrade/package.go: Fix golint issue (diff)
downloadgolite-0a64ab220b84d82bfcaef4f89c542b033a1ff997.tar.gz
golite-0a64ab220b84d82bfcaef4f89c542b033a1ff997.tar.xz
Merge pull request #665 from mjtrangoni/fix-gometalinter-issues
Fix gometalinter issues
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:")