Skip to content

Commit 8b810e4

Browse files
author
Roman Golov
committed
fix error check
1 parent 49287c9 commit 8b810e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ func (d *Driver) connect(ctx context.Context) (err error) {
417417
}
418418
if d.balancer == nil {
419419
d.balancer, err = balancer.New(ctx, d.config, d.pool, d.discoveryOptions...)
420-
}
421-
if err != nil {
422-
return xerrors.WithStackTrace(err)
420+
if err != nil {
421+
return xerrors.WithStackTrace(err)
422+
}
423423
}
424424

425425
d.table = xsync.OnceValue(func() (*internalTable.Client, error) {

0 commit comments

Comments
 (0)