Skip to content

Commit a0ed1c0

Browse files
authored
Feature/v1.2.0 (#12)
1 parent a8d9fa5 commit a0ed1c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>co.featbit</groupId>
88
<artifactId>featbit-java-sdk</artifactId>
9-
<version>1.1.1</version>
9+
<version>1.2.0</version>
1010

1111
<name>featbit/featbit-java-sdk</name>
1212

src/main/java/co/featbit/server/FBClientImp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public void trackMetric(FBUser user, String eventName) {
361361

362362
@Override
363363
public void trackMetric(FBUser user, String eventName, double metricValue) {
364-
if (user == null || StringUtils.isBlank(eventName) || metricValue <= 0) {
364+
if (user == null || StringUtils.isBlank(eventName)) {
365365
Loggers.CLIENT.warn("FB JAVA SDK: event/user/metric invalid");
366366
return;
367367
}
@@ -394,7 +394,7 @@ public void trackMetrics(FBUser user, Map<String, Double> metrics) {
394394
for (Map.Entry<String, Double> entry : metrics.entrySet()) {
395395
String eventName = entry.getKey();
396396
Double metricValue = entry.getValue();
397-
if (StringUtils.isNotBlank(eventName) && metricValue != null && metricValue > 0D) {
397+
if (StringUtils.isNotBlank(eventName) && metricValue != null) {
398398
event.add(InsightTypes.Metric.of(eventName, metricValue));
399399
}
400400
}

0 commit comments

Comments
 (0)