Skip to content

Commit

Permalink
correct ambiguous variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Oct 25, 2024
1 parent 4ae335d commit ed9b007
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/helm-project-operator/crd/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func writeFiles(dirpath string, objs []runtime.Object) error {
if err != nil {
return err
}
meta, err := meta.Accessor(o)
metaData, err := meta.Accessor(o)
if err != nil {
return err
}
key := strings.SplitN(meta.GetName(), ".", 2)[0]
key := strings.SplitN(metaData.GetName(), ".", 2)[0]
objMap[key] = data
}

Expand Down Expand Up @@ -125,17 +125,17 @@ func Objects(v1beta1 bool) (crds, crdDeps []runtime.Object, err error) {
func objects(v1beta1 bool, crdDefs []crd.CRD) (crds []runtime.Object, err error) {
for _, crdDef := range crdDefs {
if v1beta1 {
crd, err := crdDef.ToCustomResourceDefinitionV1Beta1()
crdDefInstance, err := crdDef.ToCustomResourceDefinitionV1Beta1()
if err != nil {
return nil, err
}
crds = append(crds, crd)
crds = append(crds, crdDefInstance)
} else {
crd, err := crdDef.ToCustomResourceDefinition()
crdDefInstance, err := crdDef.ToCustomResourceDefinition()
if err != nil {
return nil, err
}
crds = append(crds, crd)
crds = append(crds, crdDefInstance)
}
}
return
Expand Down

0 comments on commit ed9b007

Please sign in to comment.