From 9d54bb87674409a1cd39df21e2cfdec80fc0f3fc Mon Sep 17 00:00:00 2001 From: chashikajw Date: Mon, 27 May 2024 22:43:30 +0530 Subject: [PATCH] Remove redundant method call --- .../enforcer/analytics/ChoreoAnalyticsProvider.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/analytics/ChoreoAnalyticsProvider.java b/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/analytics/ChoreoAnalyticsProvider.java index 7fda01a0d0..bedb083b32 100644 --- a/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/analytics/ChoreoAnalyticsProvider.java +++ b/enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/analytics/ChoreoAnalyticsProvider.java @@ -224,8 +224,11 @@ public String getEndUserIP() { @Override public Map getProperties() { AnalyticsCustomDataProvider customDataProvider = AnalyticsFilter.getAnalyticsCustomDataProvider(); - if (customDataProvider != null && customDataProvider.getCustomProperties(customProperties) != null) { - return customDataProvider.getCustomProperties(customProperties); + if (customDataProvider != null) { + Map customPropertyMap = customDataProvider.getCustomProperties(customProperties); + if (customPropertyMap != null) { + return customPropertyMap; + } } return this.customProperties; }