mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
Remove unnecessary nil checks
This commit is contained in:
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…
x
Reference in New Issue
Block a user