Skip to content

Commit d06e452

Browse files
committed
[task-controller] remove unused prettyPrint
1 parent 3132cfb commit d06e452

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

control-operator/internal/controller/task_controller.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ package controller
2626

2727
import (
2828
"context"
29-
"encoding/json"
3029
"fmt"
3130
"reflect"
3231
"strings"
@@ -451,12 +450,3 @@ func (r *TaskReconciler) recordCondition(ctx context.Context, t *aliecsv1alpha1.
451450
r.Recorder.Event(t, eventType, reason, message)
452451
return r.Status().Patch(ctx, t, patch)
453452
}
454-
455-
func prettyPrint(i any) string {
456-
s, err := json.MarshalIndent(i, "", " ")
457-
if err != nil {
458-
// If marshalling fails, return a simple error string
459-
return "failed to pretty-print object"
460-
}
461-
return string(s)
462-
}

0 commit comments

Comments
 (0)