From d3dc9e6005a16528d6645f677a15df026b6b3626 Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Mon, 18 Dec 2023 15:31:33 +0100 Subject: [PATCH] f Signed-off-by: Nicolas Bigler --- pkg/controlAPI/controlapi.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/controlAPI/controlapi.go b/pkg/controlAPI/controlapi.go index ecf9e6d..14385ae 100644 --- a/pkg/controlAPI/controlapi.go +++ b/pkg/controlAPI/controlapi.go @@ -16,11 +16,7 @@ func GetSalesOrder(ctx context.Context, k8sClient client.Client, orgId string) ( return "", fmt.Errorf("cannot get Organization object '%s', err: %v", orgId, err) } if org.Status.SaleOrderName == "" { - return "", fmt.Errorf("Cannot get SalesOrder from organization object '%s', err: %v", orgId, err) - } - return org.Status.SaleOrderName, nil - return org.Status.SaleOrderName, nil - } else { return "", fmt.Errorf("Cannot get SalesOrder from organization object '%s', err: %v", orgId, err) } + return org.Status.SaleOrderName, nil }