[fix][headless-chat]Fix typo bug.#1736

This commit is contained in:
jerryjzhang
2024-10-12 16:46:34 +08:00
parent 612f046c0d
commit e6daf4d19f

View File

@@ -19,8 +19,7 @@ public abstract class MapResult implements Serializable {
public abstract String getMapKey(); public abstract String getMapKey();
public Boolean lessSimilar(MapResult otherResult) { public Boolean lessSimilar(MapResult otherResult) {
String mapKey = this.getMapKey(); return this.getMapKey().equals(otherResult.getMapKey())
String otherMapKey = otherResult.getMapKey(); && this.similarity < otherResult.similarity;
return mapKey.equals(otherMapKey) && otherResult.similarity < otherResult.similarity;
} }
} }