Skip to content

Commit

Permalink
clientconn: remove redundant check (#7700)
Browse files Browse the repository at this point in the history
  • Loading branch information
luxcgo authored Oct 16, 2024
1 parent 569c8eb commit 6cd00c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,10 +775,7 @@ func (cc *ClientConn) updateResolverStateAndUnlock(s resolver.State, err error)
}
}

var balCfg serviceconfig.LoadBalancingConfig
if cc.sc != nil && cc.sc.lbConfig != nil {
balCfg = cc.sc.lbConfig
}
balCfg := cc.sc.lbConfig
bw := cc.balancerWrapper
cc.mu.Unlock()

Expand Down

0 comments on commit 6cd00c9

Please sign in to comment.