mirror of https://github.com/hashicorp/consul
Remove unnecessary nil checks
parent
6c0bb5a810
commit
010a459365
|
@ -888,9 +888,6 @@ func (s *Server) KeyManagerLAN() *serf.KeyManager {
|
|||
|
||||
// KeyManagerWAN returns the WAN Serf keyring manager
|
||||
func (s *Server) KeyManagerWAN() *serf.KeyManager {
|
||||
if s.serfWAN == nil {
|
||||
return nil
|
||||
}
|
||||
return s.serfWAN.KeyManager()
|
||||
}
|
||||
|
||||
|
|
|
@ -116,9 +116,6 @@ func (r *Router) Shutdown() {
|
|||
|
||||
// AddArea registers a new network area with the router.
|
||||
func (r *Router) AddArea(areaID types.AreaID, cluster RouterSerfCluster, pinger Pinger, useTLS bool) error {
|
||||
if cluster == nil {
|
||||
return nil
|
||||
}
|
||||
r.Lock()
|
||||
defer r.Unlock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue