Skip to content

Commit

Permalink
Rewrite 'for...select' as 'for range' to please lint
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Boreham <bryan@weave.works>
  • Loading branch information
bboreham committed Feb 24, 2020
1 parent 756f2d1 commit 43830c4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkg/alertmanager/alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,10 @@ var webReload = make(chan chan error)

func init() {
go func() {
for {
select {
// Since this is not a "normal" Alertmanager which reads its config
// from disk, we just ignore web-based reload signals. Config updates are
// only applied externally via ApplyConfig().
case <-webReload:
}
// Since this is not a "normal" Alertmanager which reads its config
// from disk, we just accept and ignore web-based reload signals. Config
// updates are only applied externally via ApplyConfig().
for range webReload {
}
}()
}
Expand Down

0 comments on commit 43830c4

Please sign in to comment.