diff --git a/src/main/java/tuteez/logic/Messages.java b/src/main/java/tuteez/logic/Messages.java index e5f8d77a487..40fe90fffb6 100644 --- a/src/main/java/tuteez/logic/Messages.java +++ b/src/main/java/tuteez/logic/Messages.java @@ -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; } }