Skip to content

Commit

Permalink
Refactor toString() method in Embedding class (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seol-JY authored Dec 18, 2023
1 parent 54f749f commit 9bd9635
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public int hashCode() {

@Override
public String toString() {
String message = this.embedding.size() == 0 ? "<empty>" : "<has data>";
String message = this.embedding.isEmpty() ? "<empty>" : "<has data>";
return "Embedding{" + "embedding=" + message + ", index=" + index + '}';
}

Expand Down

0 comments on commit 9bd9635

Please sign in to comment.