Skip to content

Commit fa30224

Browse files
committed
fix: Print strings.Builder by calling String() explicitly.
The `String()` method is only defined for the pointer receiver. Signed-off-by: Florian Forster <[email protected]>
1 parent 8be37ef commit fa30224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/gitrepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ func (r *GitRepositoryReconciler) verifySignature(ctx context.Context, obj *sour
10271027
reason := meta.SucceededReason
10281028
mode := obj.Spec.Verification.GetMode()
10291029
obj.Status.SourceVerificationMode = &mode
1030-
conditions.MarkTrue(obj, sourcev1.SourceVerifiedCondition, reason, "%v", message)
1030+
conditions.MarkTrue(obj, sourcev1.SourceVerifiedCondition, reason, "%s", message.String())
10311031
r.eventLogf(ctx, obj, eventv1.EventTypeTrace, reason, message.String())
10321032
return sreconcile.ResultSuccess, nil
10331033
}

0 commit comments

Comments
 (0)