Repository: incubator-unomi
Updated Branches:
  refs/heads/master 4f834b23e -> da9d4d277


The score can be negative


Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/2a74161e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/2a74161e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/2a74161e

Branch: refs/heads/master
Commit: 2a74161ed1f245494fe6a3a7e3c5b68a26a0dd7a
Parents: 4f834b2
Author: dinesh1996 <dinesh.salhotrad...@ynov.com>
Authored: Wed Jun 20 14:46:11 2018 +0200
Committer: dinesh1996 <dinesh.salhotrad...@ynov.com>
Committed: Wed Jun 20 14:46:11 2018 +0200

----------------------------------------------------------------------
 .../org/apache/unomi/services/services/SegmentServiceImpl.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/2a74161e/services/src/main/java/org/apache/unomi/services/services/SegmentServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/services/src/main/java/org/apache/unomi/services/services/SegmentServiceImpl.java
 
b/services/src/main/java/org/apache/unomi/services/services/SegmentServiceImpl.java
index 442d14f..a3dc984 100644
--- 
a/services/src/main/java/org/apache/unomi/services/services/SegmentServiceImpl.java
+++ 
b/services/src/main/java/org/apache/unomi/services/services/SegmentServiceImpl.java
@@ -442,9 +442,7 @@ public class SegmentServiceImpl extends AbstractServiceImpl 
implements SegmentSe
                 if (scoreModifiers != null && 
scoreModifiers.containsKey(scoringId) && scoreModifiers.get(scoringId) != null) 
{
                     score += scoreModifiers.get(scoringId);
                 }
-                if (score > 0) {
-                    scores.put(scoringId, score);
-                }
+                scores.put(scoringId, score);
             }
         }
 

Reply via email to