Skip to content

Commit

Permalink
Remove redundant method call
Browse files Browse the repository at this point in the history
  • Loading branch information
chashikajw committed Jun 28, 2024
1 parent 0c1943d commit 7ec32e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,11 @@ public String getEndUserIP() {
@Override
public Map<String, Object> getProperties() {
AnalyticsCustomDataProvider customDataProvider = AnalyticsFilter.getAnalyticsCustomDataProvider();
if (customDataProvider != null && customDataProvider.getCustomProperties(customProperties) != null) {
return customDataProvider.getCustomProperties(customProperties);
if (customDataProvider != null) {
Map<String, Object> customPropertyMap = customDataProvider.getCustomProperties(customProperties);
if (customPropertyMap != null) {
return customPropertyMap;
}
}
return this.customProperties;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,11 @@ public String getEndUserIP() {
@Override
public Map<String, Object> getProperties() {
AnalyticsCustomDataProvider customDataProvider = AnalyticsFilter.getAnalyticsCustomDataProvider();
if (customDataProvider != null && customDataProvider.getCustomProperties(customProperties) != null) {
return customDataProvider.getCustomProperties(customProperties);
if (customDataProvider != null) {
Map<String, Object> customPropertyMap = customDataProvider.getCustomProperties(customProperties);
if (customPropertyMap != null) {
return customPropertyMap;
}
}
return this.customProperties;
}
Expand Down

0 comments on commit 7ec32e4

Please sign in to comment.