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
+4 -6
View File
@@ -36,12 +36,10 @@ func (w *Watcher) Follow(pe process.ProcEntry, followerChan chan process.ProcEnt
}()
go func() {
select {
case status := <-state:
w.log.Info().Str("package", "watcher").Msgf("%v exited with: %v", pe.Extension, status)
if restart {
followerChan <- pe
}
status := <-state
w.log.Info().Str("package", "watcher").Msgf("%v exited with: %v", pe.Extension, status)
if restart {
followerChan <- pe
}
}()
}