Skip to content

Commit

Permalink
Fix compile error and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ReganChoy committed Apr 3, 2024
1 parent eaa850e commit 8759750
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/seedu/address/logic/commands/SetCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public class SetCommand extends Command {
+ "Parameters: "
+ "NUMBER_OF_DAYS "
+ "Example: " + COMMAND_WORD + " "
+ "90. ";
+ "90.\n "
+ "NUMBER_OF_DAYS must be an integer and be at least 0.";

public static final String MESSAGE_SUCCESS = "LastMet Overdue time period has been set to %1$s days.";
/**
Expand All @@ -42,7 +43,7 @@ public CommandResult execute(Model model) throws CommandException {
requireNonNull(model);

Check warning on line 43 in src/main/java/seedu/address/logic/commands/SetCommand.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/logic/commands/SetCommand.java#L43

Added line #L43 was not covered by tests

LastMet.setLastMetDuration(this.overdueTimePeriod);
List<Person> lastShownList = model.getFilteredPersonList();
List<Person> lastShownList = model.getSortedFilteredPersonList();

Check warning on line 46 in src/main/java/seedu/address/logic/commands/SetCommand.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/logic/commands/SetCommand.java#L45-L46

Added lines #L45 - L46 were not covered by tests

int numberOfClients = lastShownList.size();

Check warning on line 48 in src/main/java/seedu/address/logic/commands/SetCommand.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/logic/commands/SetCommand.java#L48

Added line #L48 was not covered by tests

Expand Down

0 comments on commit 8759750

Please sign in to comment.