Skip to content

Commit

Permalink
Merge pull request #2029 from testwill/loop
Browse files Browse the repository at this point in the history
chore: slice loop replace
  • Loading branch information
jedevc authored Aug 31, 2023
2 parents 76119b0 + a71a24c commit 87e8e4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controller/remote/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ func (m *Server) ListProcesses(ctx context.Context, req *pb.ListProcessesRequest
return nil, errors.Errorf("unknown ref %q", req.Ref)
}
res = new(pb.ListProcessesResponse)
for _, p := range s.processes.ListProcesses() {
res.Infos = append(res.Infos, p)
}
res.Infos = append(res.Infos, s.processes.ListProcesses()...)
return res, nil
}

Expand Down

0 comments on commit 87e8e4b

Please sign in to comment.