Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remark CLI message #95

Merged

Conversation

reidenong
Copy link

fixes #91

@reidenong reidenong added type.Bug A bug priority.Medium Nice to have labels Nov 7, 2024
@reidenong reidenong added this to the v1.5 milestone Nov 7, 2024
@reidenong reidenong self-assigned this Nov 7, 2024
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ Complexity Δ
...va/seedu/address/logic/commands/RemarkCommand.java 100.00% <100.00%> (ø) 12.00 <0.00> (ø)

Copy link

@Dominic-Khoo Dominic-Khoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -78,7 +78,7 @@ public CommandResult execute(Model model) throws CommandException {
*/
private String generateSuccessMessage(Person personToEdit) {
String message = !remark.value.isEmpty() ? MESSAGE_ADD_REMARK_SUCCESS : MESSAGE_DELETE_REMARK_SUCCESS;
return String.format(message, personToEdit);
return String.format(message, personToEdit.getName().toString());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Should fix the bug that was mentioned.

@itsnotsherm itsnotsherm merged commit 3750a2c into AY2425S1-CS2103T-W11-1a:master Nov 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.Medium Nice to have type.Bug A bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add remark confusing CLI response
3 participants