Merge pull request #411 from dqminh/fix-some-check
fix ineffassign: use processes array
This commit is contained in:
commit
5ac8610e2c
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)
|
// generate exit event for all processes, (generate event for init last)
|
||||||
processes := c.Processes()
|
processes := c.Processes()
|
||||||
processes = append(processes[1:], processes[0])
|
processes = append(processes[1:], processes[0])
|
||||||
for _, p := range c.Processes() {
|
for _, p := range processes {
|
||||||
if p.Status() != Stopped {
|
if p.Status() != Stopped {
|
||||||
p.Signal(os.Kill)
|
p.Signal(os.Kill)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue