From 726b88f9b73f4dfeb5c4a344af592699b58b6af8 Mon Sep 17 00:00:00 2001 From: Daniel Dao Date: Wed, 11 Jan 2017 22:32:37 +0000 Subject: [PATCH] fix ineffassign: use processes array uses processes variable instead of calling the Processes() func again Signed-off-by: Daniel Dao --- execution/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution/service.go b/execution/service.go index 5636c5b..524ce99 100644 --- a/execution/service.go +++ b/execution/service.go @@ -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) }