From d06e452cdcec5fb2c902414767d57b06de38de3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tich=C3=A1k?= Date: Tue, 8 Sep 2026 16:37:29 +0200 Subject: [PATCH] [task-controller] remove unused prettyPrint --- .../internal/controller/task_controller.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/control-operator/internal/controller/task_controller.go b/control-operator/internal/controller/task_controller.go index a9a486a4..3cfe8db7 100644 --- a/control-operator/internal/controller/task_controller.go +++ b/control-operator/internal/controller/task_controller.go @@ -26,7 +26,6 @@ package controller import ( "context" - "encoding/json" "fmt" "reflect" "strings" @@ -451,12 +450,3 @@ func (r *TaskReconciler) recordCondition(ctx context.Context, t *aliecsv1alpha1. r.Recorder.Event(t, eventType, reason, message) return r.Status().Patch(ctx, t, patch) } - -func prettyPrint(i any) string { - s, err := json.MarshalIndent(i, "", " ") - if err != nil { - // If marshalling fails, return a simple error string - return "failed to pretty-print object" - } - return string(s) -}