File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ func (r *PerformanceProfileReconciler) SetupWithManager(mgr ctrl.Manager) error
117117 },
118118 }
119119
120- err := ctrl .NewControllerManagedBy (mgr ).
120+ return ctrl .NewControllerManagedBy (mgr ).
121121 For (& performancev2.PerformanceProfile {}).
122122 Owns (& mcov1.MachineConfig {}, builder .WithPredicates (p )).
123123 Owns (& mcov1.KubeletConfig {}, builder .WithPredicates (kubeletPredicates )).
@@ -133,10 +133,6 @@ func (r *PerformanceProfileReconciler) SetupWithManager(mgr ctrl.Manager) error
133133 builder .WithPredicates (tunedProfilePredicates ),
134134 ).
135135 Complete (r )
136- if err != nil {
137- return err
138- }
139- return nil
140136}
141137
142138func (r * PerformanceProfileReconciler ) mcpToPerformanceProfile (mcpObj client.Object ) []reconcile.Request {
You can’t perform that action at this time.
0 commit comments