From 7d9ad9e88a1f0ee39426aadec8f94f449fa4ab36 Mon Sep 17 00:00:00 2001 From: Shahm Ebido Date: Fri, 2 Aug 2024 15:22:39 +0200 Subject: [PATCH] feat(NF-1618): update function name --- .../src/main/java/com/neverpile/common/LCServ.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neverpile-commons-license/src/main/java/com/neverpile/common/LCServ.java b/neverpile-commons-license/src/main/java/com/neverpile/common/LCServ.java index 511c0fb..6563a75 100644 --- a/neverpile-commons-license/src/main/java/com/neverpile/common/LCServ.java +++ b/neverpile-commons-license/src/main/java/com/neverpile/common/LCServ.java @@ -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; } }