Skip to content

Commit

Permalink
clarify ambiguous variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Oct 25, 2024
1 parent 42dadd3 commit 59445dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/helm-project-operator/crd/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ func Create(ctx context.Context, cfg *rest.Config) error {
}

func newCRD(namespacedType string, obj interface{}, customize func(crd.CRD) crd.CRD) crd.CRD {
crd := crd.NamespacedType(namespacedType).
newCrd := crd.NamespacedType(namespacedType).
WithSchemaFromStruct(obj).
WithStatus()

if customize != nil {
crd = customize(crd)
newCrd = customize(newCrd)
}
return crd
return newCrd
}

0 comments on commit 59445dc

Please sign in to comment.