Merge pull request #2029 from testwill/loop

chore: slice loop replace
pull/2006/head
Justin Chadwell 1 year ago committed by GitHub
commit 87e8e4b847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,9 +57,7 @@ func (m *Server) ListProcesses(ctx context.Context, req *pb.ListProcessesRequest
return nil, errors.Errorf("unknown ref %q", req.Ref) return nil, errors.Errorf("unknown ref %q", req.Ref)
} }
res = new(pb.ListProcessesResponse) res = new(pb.ListProcessesResponse)
for _, p := range s.processes.ListProcesses() { res.Infos = append(res.Infos, s.processes.ListProcesses()...)
res.Infos = append(res.Infos, p)
}
return res, nil return res, nil
} }

Loading…
Cancel
Save