[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 Boolean lessSimilar(MapResult otherResult) {
String mapKey = this.getMapKey();
String otherMapKey = otherResult.getMapKey();
return mapKey.equals(otherMapKey) && otherResult.similarity < otherResult.similarity;
return this.getMapKey().equals(otherResult.getMapKey())
&& this.similarity < otherResult.similarity;
}
}