Skip to content

Commit 5a77eae

Browse files
wip
1 parent bf4bfc6 commit 5a77eae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ func (r *argoRuntime) List() ([]model.Runtime, error) {
6767
if err != nil {
6868
return nil, err
6969
}
70-
runtimes := []model.Runtime{}
71-
for _, v := range res.Data.Runtimes.Edges {
72-
runtimes = append(runtimes, *v.Node)
70+
runtimes := make([]model.Runtime, len(res.Data.Runtimes.Edges))
71+
for i := range res.Data.Runtimes.Edges {
72+
runtimes[i] = *res.Data.Runtimes.Edges[i].Node
7373
}
7474

7575
if len(res.Errors) > 0 {

0 commit comments

Comments
 (0)