From 76142290a31ae8c791ad902c1029652e38e18914 Mon Sep 17 00:00:00 2001 From: liushao Date: Wed, 29 Mar 2023 11:55:28 +0800 Subject: [PATCH] fix: remove duplicate code (#532) --- pkg/datasource/sql/conn_xa.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/datasource/sql/conn_xa.go b/pkg/datasource/sql/conn_xa.go index b42cdac6d..e33bb5414 100644 --- a/pkg/datasource/sql/conn_xa.go +++ b/pkg/datasource/sql/conn_xa.go @@ -80,7 +80,6 @@ func (c *XAConn) QueryContext(ctx context.Context, query string, args []driver.N } return types.NewResult(types.WithRows(ret)), nil }) - if err != nil { return nil, err } @@ -367,9 +366,6 @@ func (c *XAConn) CloseForce() error { } c.rollBacked = false c.cleanXABranchContext() - if err := c.Conn.Close(); err != nil { - return err - } c.releaseIfNecessary() return nil }