Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed Dec 12, 2024
1 parent 379e2d9 commit e74cb78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controller/incuscluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,14 @@ func (r *IncusClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request
return r.reconcileNormal(ctx, cluster, incusCluster)
}

//nolint:unparam
func (r *IncusClusterReconciler) reconcileDelete(_ context.Context, _ *clusterv1.Cluster, incusCluster *infrav1alpha1.IncusCluster) error {
controllerutil.RemoveFinalizer(incusCluster, infrav1alpha1.ClusterFinalizer)

return nil
}

//nolint:unparam
func (r *IncusClusterReconciler) reconcileNormal(ctx context.Context, _ *clusterv1.Cluster, incusCluster *infrav1alpha1.IncusCluster) (ctrl.Result, error) {
log := log.FromContext(ctx)

Expand Down
1 change: 1 addition & 0 deletions internal/controller/incusmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func (r *IncusMachineReconciler) reconcileDelete(ctx context.Context, _ *infrav1
}, nil
}

//nolint:unparam
func (r *IncusMachineReconciler) reconcileNormal(ctx context.Context, cluster *clusterv1.Cluster, _ *infrav1alpha1.IncusCluster, machine *clusterv1.Machine, incusMachine *infrav1alpha1.IncusMachine) (ctrl.Result, error) {
log := ctrl.LoggerFrom(ctx)

Expand Down

0 comments on commit e74cb78

Please sign in to comment.