Skip to content

Commit

Permalink
Change formatPersonName method
Browse files Browse the repository at this point in the history
  • Loading branch information
potaotototo committed Nov 2, 2024
1 parent 3a0f1e9 commit 182c749
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/tuteez/logic/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ public static String format(Person person) {
* Formats the person's {@code name} for display to the user.
*/
public static String formatPersonName(Person person) {
final StringBuilder builder = new StringBuilder();
builder.append(person.getName());
return builder.toString();
return person.getName().fullName;
}

}

0 comments on commit 182c749

Please sign in to comment.