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 }