Browse Source

Remove unnecessary else.

This was flagged by the linter.

Signed-off-by: Paulin Todev <paulin.todev@gmail.com>
pull/13023/head
Paulin Todev 12 months ago
parent
commit
6279497124
No known key found for this signature in database
GPG Key ID: 9A127C7452ED9879
  1. 12
      cmd/prometheus/main.go

12
cmd/prometheus/main.go

@ -636,9 +636,8 @@ func main() {
if discMgr == nil {
level.Error(logger).Log("msg", "failed to create a discovery manager scrape")
os.Exit(1)
} else {
discoveryManagerScrape = discMgr
}
discoveryManagerScrape = discMgr
}
{
@ -646,9 +645,8 @@ func main() {
if discMgr == nil {
level.Error(logger).Log("msg", "failed to create a discovery manager notify")
os.Exit(1)
} else {
discoveryManagerNotify = discMgr
}
discoveryManagerNotify = discMgr
}
} else {
{
@ -656,9 +654,8 @@ func main() {
if discMgr == nil {
level.Error(logger).Log("msg", "failed to create a discovery manager scrape")
os.Exit(1)
} else {
discoveryManagerScrape = discMgr
}
discoveryManagerScrape = discMgr
}
{
@ -666,9 +663,8 @@ func main() {
if discMgr == nil {
level.Error(logger).Log("msg", "failed to create a discovery manager notify")
os.Exit(1)
} else {
discoveryManagerNotify = discMgr
}
discoveryManagerNotify = discMgr
}
}

Loading…
Cancel
Save