Skip to content

Commit ed242f4

Browse files
revert formatting
1 parent 50c2afb commit ed242f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/builder/webhook_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,7 @@ func (*TestDefaultValidatorList) DeepCopyObject() runtime.Object { return nil
649649
type TestCustomDefaulter struct{}
650650

651651
func (*TestCustomDefaulter) Default(ctx context.Context, obj runtime.Object) error {
652-
log := logf.FromContext(ctx)
653-
log.Info("Defaulting object")
652+
logf.FromContext(ctx).Info("Defaulting object")
654653
req, err := admission.RequestFromContext(ctx)
655654
if err != nil {
656655
return fmt.Errorf("expected admission.Request in ctx: %w", err)
@@ -676,8 +675,7 @@ var _ admission.CustomDefaulter = &TestCustomDefaulter{}
676675
type TestMutationHandler struct{}
677676

678677
func (*TestMutationHandler) Handle(ctx context.Context, req admission.Request) admission.Response {
679-
log := logf.FromContext(ctx)
680-
log.Info("Mutating object")
678+
logf.FromContext(ctx).Info("Mutating object")
681679
return admission.Response{
682680
AdmissionResponse: admissionv1.AdmissionResponse{
683681
Allowed: true,

0 commit comments

Comments
 (0)