Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bigler <[email protected]>
  • Loading branch information
TheBigLee committed Dec 18, 2023
1 parent 402630e commit d3dc9e6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/controlAPI/controlapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit d3dc9e6

Please sign in to comment.