Skip to content

Commit

Permalink
feat(NF-1618): update function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidosm committed Aug 2, 2024
1 parent 12eb35e commit 7d9ad9e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ private void init() {
}

/**
* Returns the product variant based on the provided license information and the product name.
* If the license is expired, not provided or not valid, the product variant will be "basic".
* Returns the product name based on the provided license information.
* If the license is expired, the function will return null.
*
* @return the product variant as a string
*/
public String getProductVariant() {
public String getProductName() {
if (handler != null && handler.product() != null && !handler.license().isExpired()) {
String productName = handler.product().name();
if (productName.toLowerCase().contains(VariantConstant.ADVANCED)) {
return VariantConstant.ADVANCED;
return productName.toLowerCase();
}
}
return VariantConstant.BASIC;
return null;
}

}

0 comments on commit 7d9ad9e

Please sign in to comment.