Skip to content

Commit

Permalink
fix: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Tien committed Dec 2, 2024
1 parent 28d3012 commit 0f38474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/yurtmanager/webhook/endpoints/v1/endpoints_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
func (webhook *EndpointsHandler) Default(ctx context.Context, obj runtime.Object) error {
endpoints, ok := obj.(*corev1.Endpoints)
if !ok {
return fmt.Errorf("expected an Endpoints object but got %T", obj)
apierrors.NewBadRequest(fmt.Sprintf("expected an Endpoints object but got %T", obj))

Check warning on line 36 in pkg/yurtmanager/webhook/endpoints/v1/endpoints_default.go

View check run for this annotation

Codecov / codecov/patch

pkg/yurtmanager/webhook/endpoints/v1/endpoints_default.go#L36

Added line #L36 was not covered by tests
}

return remapAutonomyEndpoints(ctx, webhook.Client, endpoints)
Expand Down

0 comments on commit 0f38474

Please sign in to comment.