Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: lsviben <[email protected]>
  • Loading branch information
lsviben committed Nov 28, 2023
1 parent 3f4a67c commit bcdd640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/object/v1alpha1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (src *Object) ConvertTo(dstRaw conversion.Hub) error { // nolint:golint //
}

// ConvertFrom converts from the Hub version (v1beta1) to this version.
func (dst *Object) ConvertFrom(srcRaw conversion.Hub) error { // nolint:golint // We want to use different names for receiver parameter to be more clear.
func (dst *Object) ConvertFrom(srcRaw conversion.Hub) error { // nolint:golint, gocyclo // We want to use different names for receiver parameter to be more clear.
src := srcRaw.(*v1beta1.Object)

// copy identical fields
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func Setup(mgr ctrl.Manager, o controller.Options) error {
cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())}

// TODO(lsviben) there should be a better way to do this
r := &managed.Reconciler{}
var r *managed.Reconciler
if o.Features.Enabled(feature.EnableBetaManagementPolicies) {
r = managed.NewReconciler(mgr,
resource.ManagedKind(v1beta1.ObjectGroupVersionKind),
Expand Down

0 comments on commit bcdd640

Please sign in to comment.