Idiomatic error handling for app/c*.go (#9423)

Этот коммит содержится в:
Jesús Espino
2018-09-24 13:27:31 +02:00
коммит произвёл GitHub
родитель 8898d7aab9
Коммит 9d73c79def
3 изменённых файлов: 20 добавлений и 18 удалений

Просмотреть файл

@@ -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 {