chore: slice loop replace

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
pull/2029/head
guoguangwu 1 year ago
parent 76119b0f61
commit a71a24c0f4

@ -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