Skip to content

Commit

Permalink
remove a nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Feb 25, 2021
1 parent 6f786bc commit fa900c0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions balancer_conn_wrappers.go
Expand Up @@ -168,14 +168,6 @@ func (ccb *ccBalancerWrapper) UpdateAddresses(sc balancer.SubConn, addrs []resol
if !ok {
return
}

ccb.mu.Lock()
if ccb.subConns == nil {
ccb.mu.Unlock()
return
}
ccb.mu.Unlock()

acbw.UpdateAddresses(addrs)
}

Expand Down

0 comments on commit fa900c0

Please sign in to comment.