fix ineffassign: use processes array
uses processes variable instead of calling the Processes() func again Signed-off-by: Daniel Dao <dqminh89@gmail.com>
This commit is contained in:
parent
23a644de8a
commit
726b88f9b7
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ func New(ctx context.Context, executor Executor) (*Service, error) {
|
|||
// generate exit event for all processes, (generate event for init last)
|
||||
processes := c.Processes()
|
||||
processes = append(processes[1:], processes[0])
|
||||
for _, p := range c.Processes() {
|
||||
for _, p := range processes {
|
||||
if p.Status() != Stopped {
|
||||
p.Signal(os.Kill)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue