]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: remove useless error check
authorguoguangwu <guoguangwug@gmail.com>
Tue, 5 Mar 2024 02:38:41 +0000 (02:38 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 6 Mar 2024 19:14:36 +0000 (19:14 +0000)
Change-Id: Id2d45a4b43b05deba4e2c31f7c03008c2f2c18a2
GitHub-Last-Rev: 587bed9a64da08d5b476d87333aed72649dad470
GitHub-Pull-Request: golang/go#66110
Reviewed-on: https://go-review.googlesource.com/c/go/+/569075
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/database/sql/sql_test.go

index eb4e22fcd8d974900a2504413817598dd2226aa3..bf0ecc243f7bf3b928fe2601cd5746c04a091742 100644 (file)
@@ -2402,9 +2402,6 @@ func TestConnMaxLifetime(t *testing.T) {
        // Expire first conn
        offset = 11 * time.Second
        db.SetConnMaxLifetime(10 * time.Second)
-       if err != nil {
-               t.Fatal(err)
-       }
 
        tx, err = db.Begin()
        if err != nil {