From 9d73c79deff403dd9ac2d1476e1c5fdc282beafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 24 Sep 2018 13:27:31 +0200 Subject: Idiomatic error handling for app/c*.go (#9423) --- app/cluster_discovery.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/cluster_discovery.go') diff --git a/app/cluster_discovery.go b/app/cluster_discovery.go index 250744279..597088efb 100644 --- a/app/cluster_discovery.go +++ b/app/cluster_discovery.go @@ -81,9 +81,8 @@ func (me *ClusterDiscoveryService) Stop() { func (a *App) IsLeader() bool { if a.License() != nil && *a.Config().ClusterSettings.Enable && a.Cluster != nil { return a.Cluster.IsLeader() - } else { - return true } + return true } func (a *App) GetClusterId() string { -- cgit v1.2.3-1-g7c22