Skip to content

Commit

Permalink
fix: Print strings.Builder by calling String() explicitly.
Browse files Browse the repository at this point in the history
The `String()` method is only defined for the pointer receiver.

Signed-off-by: Florian Forster <[email protected]>
  • Loading branch information
octo committed Jul 4, 2024
1 parent d186b2b commit 050a426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/gitrepository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ func (r *GitRepositoryReconciler) verifySignature(ctx context.Context, obj *sour
reason := meta.SucceededReason
mode := obj.Spec.Verification.GetMode()
obj.Status.SourceVerificationMode = &mode
conditions.MarkTrue(obj, sourcev1.SourceVerifiedCondition, reason, "%v", message)
conditions.MarkTrue(obj, sourcev1.SourceVerifiedCondition, reason, "%s", message.String())
r.eventLogf(ctx, obj, eventv1.EventTypeTrace, reason, message.String())
return sreconcile.ResultSuccess, nil
}
Expand Down

0 comments on commit 050a426

Please sign in to comment.