We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7599e38 + 3e27dc7 commit 5b83201Copy full SHA for 5b83201
pkg/repo/repo.go
@@ -267,8 +267,8 @@ func (r *Repo) LoadLocalKEPs(sig string) ([]*api.Proposal, error) {
267
268
logrus.Debugf("loading the following local KEPs: %v", files)
269
270
- var allKEPs []*api.Proposal
271
- for _, kepYamlPath := range files {
+ allKEPs := make([]*api.Proposal, len(files))
+ for i, kepYamlPath := range files {
272
kep, err := r.loadKEPFromYaml(r.BasePath, kepYamlPath)
273
if err != nil {
274
return nil, errors.Wrapf(
@@ -278,7 +278,7 @@ func (r *Repo) LoadLocalKEPs(sig string) ([]*api.Proposal, error) {
278
)
279
}
280
281
- allKEPs = append(allKEPs, kep)
+ allKEPs[i] = kep
282
283
284
logrus.Debugf("returning %d local KEPs", len(allKEPs))
0 commit comments