fix staticcheck

This commit is contained in:
A.Unger
2021-01-25 16:06:22 +01:00
parent 49b19418d2
commit 70206b7c2f
3 changed files with 8 additions and 13 deletions
+3 -6
View File
@@ -2,12 +2,9 @@ package controller
// detach will try to restart processes on failures.
func detach(c *Controller) {
for {
select {
case proc := <-c.Terminated:
if err := c.Start(proc); err != nil {
c.log.Err(err)
}
for proc := range c.Terminated {
if err := c.Start(proc); err != nil {
c.log.Err(err)
}
}
}