Skip to content

Commit

Permalink
fix: remove duplicate code (apache#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
iSuperCoder authored and georgehao committed May 7, 2023
1 parent e99c9c1 commit 7614229
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/datasource/sql/conn_xa.go
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 7614229

Please sign in to comment.