Skip to content

Commit

Permalink
Merge pull request #79 from jlifah/jenny-branch
Browse files Browse the repository at this point in the history
reduce lines
  • Loading branch information
jlifah authored Oct 13, 2020
2 parents 7c62e32 + fc5fadb commit 3063f69
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/java/seedu/duke/userprofile/Userinfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,7 @@ public String getactivityfactor() {


public void printNewUserCalculatedDetails() {
// try {
// if (Integer.parseInt(this.getactivityfactor()) > 5) {
// throw new IllegalArgumentException();
// }
// } catch (IllegalArgumentException illegalArgumentException) {
// displayInvalidActivityFactorMessage();
// }

double activityMultiple = 0;
double activityMultiple;

switch (Integer.parseInt(this.getactivityfactor())) {
case 1:
Expand Down

0 comments on commit 3063f69

Please sign in to comment.