Skip to content

Commit

Permalink
[fix][headless-chat]Fix typo bug.#1736
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryjzhang committed Oct 12, 2024
1 parent 612f046 commit e6daf4d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit e6daf4d

Please sign in to comment.