Skip to content

Commit

Permalink
Merge pull request #430 from cuishuang/main
Browse files Browse the repository at this point in the history
fix: fix slice init length
  • Loading branch information
stefanprodan authored Oct 22, 2024
2 parents c76ff43 + f89a70d commit 18698a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runtime/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (s *StorageManager) ListNamespaces(ctx context.Context) ([]string, error) {
return nil, err
}

res := make([]string, len(nsList.Items))
res := make([]string, 0, len(nsList.Items))
for _, ns := range nsList.Items {
res = append(res, ns.Name)
}
Expand Down

0 comments on commit 18698a8

Please sign in to comment.