Skip to content

Commit

Permalink
feat: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michael12312 committed Jul 3, 2024
1 parent b18944c commit 440792d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/addons_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ func (r *AddonsLayerReconciler) SetupWithManagerAndOptions(mgr ctrl.Manager, opt
r.Log.V(1).Info("update event", append(logging.GetFunctionAndSource(logging.MyCaller), logging.GetObjKindNamespaceName(e.ObjectNew)...)...)

if diff := cmp.Diff(e.ObjectOld, e.ObjectNew); len(diff) > 0 {
r.Log.V(1).Info("update event object change", append(logging.GetFunctionAndSource(logging.MyCaller), append(logging.GetObjKindNamespaceName(e.ObjectNew), "diff", diff)...)...)
r.Log.V(1).Info("update event object change", append(logging.GetFunctionAndSource(logging.MyCaller),
append(logging.GetObjKindNamespaceName(e.ObjectNew), "diff", diff)...)...)
}
if e.ObjectOld == nil || e.ObjectNew == nil {
r.Log.Error(fmt.Errorf("nill object passed to watcher"), "skipping processing",
Expand Down Expand Up @@ -858,7 +859,7 @@ func (r *AddonsLayerReconciler) update(ctx context.Context, a *kraanv1alpha1.Add
return nil
}

func (r *AddonsLayerReconciler) repoMapperFunc(ctx context.Context, o *sourcev1.GitRepository) []reconcile.Request { //nolint:gocyclo //ok
func (r *AddonsLayerReconciler) repoMapperFunc(ctx context.Context, o *sourcev1.GitRepository) []reconcile.Request {
logging.TraceCall(r.Log)
defer logging.TraceExit(r.Log)

Expand Down

0 comments on commit 440792d

Please sign in to comment.