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 bug: [Issue #76] Response message not taking into account quantity of items #84

Merged

Conversation

nweiyue
Copy link

@nweiyue nweiyue commented Oct 3, 2020

Could only find the issue in find command.
clear and list command use "all students" so I didn't make any changes to them.

@nweiyue nweiyue added the type.Bug A bug label Oct 3, 2020
@erisjacey erisjacey linked an issue Oct 3, 2020 that may be closed by this pull request
Copy link

@erisjacey erisjacey left a comment

Choose a reason for hiding this comment

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

LGTM! Just one minor nitpick.

if (numberOfStudents == 1) {
return MESSAGE_SINGLE_STUDENT_LISTED_OVERVIEW;
}
return MESSAGE_MULTIPLE_STUDENTS_LISTED_OVERVIEW;

Choose a reason for hiding this comment

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

Would this make more sense to put in an if-else block (with comments to describe the else block)?

Copy link
Author

Choose a reason for hiding this comment

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

Right. Thanks for pointing it out!

Copy link

@marcustw marcustw left a comment

Choose a reason for hiding this comment

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

LGTM

@nweiyue nweiyue merged commit df5cf9d into AY2021S1-CS2103T-W16-4:master Oct 3, 2020
@erisjacey erisjacey added this to the v1.2.1 milestone Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

String response to users not taking into account quantity of items
3 participants