From d1da7a5bff67b9aec109e03805653c8040e29e4c Mon Sep 17 00:00:00 2001 From: alingse Date: Sun, 15 Dec 2024 19:29:26 +0800 Subject: [PATCH] fix return a nilness err Signed-off-by: alingse --- pkg/reconciler/apis/apibindingdeletion/apibinding_deletor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconciler/apis/apibindingdeletion/apibinding_deletor.go b/pkg/reconciler/apis/apibindingdeletion/apibinding_deletor.go index 539c40f9276..40ead460054 100644 --- a/pkg/reconciler/apis/apibindingdeletion/apibinding_deletor.go +++ b/pkg/reconciler/apis/apibindingdeletion/apibinding_deletor.go @@ -118,7 +118,7 @@ func (c *Controller) deleteAllCR(ctx context.Context, clusterName logicalcluster deleteError := utilerrors.NewAggregate(deleteErrors) if deleteError != nil { - return gvrDeletionMetadata{}, err + return gvrDeletionMetadata{}, deleteError } // resource will not be delete immediately, instead of list again, we just return the