Skip to content

Commit

Permalink
Merge pull request AY1920S1-CS2113-T14-2#26 from x3chillax/B-ViewSche…
Browse files Browse the repository at this point in the history
…dules

[CS2113-T14-2]-joeygoh-B-ViewSchedules
  • Loading branch information
x3chillax authored Sep 18, 2019
2 parents dfdd207 + 5e7d4cf commit 0769902
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/duke/command/ViewCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public void execute(TaskList taskList, Ui ui, Storage storage) {
int i = 1;
try {
for (Task task : taskList.getAllTasks()) {
//task.setNewDate();
if ((task.getCurrentDate()).equals(toView)) {
//needs work on this part. comparing of time use Date always takes into account time 0000
sb.append("\t ").append(i++).append(".").append(task.toString());
Expand Down
1 change: 0 additions & 1 deletion src/main/java/duke/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public static Command parse(String fullCommand) throws DukeException {
String[] getUntil = splitted[1].split("/until ", 2);
if (getUntil.length < 2)
throw new DukeException("The description of a snooze must contain /until date!");
//return new Snooze(getUntil[0], getUntil[1]);
case "view":
if ((splitted.length == 1) || splitted[1].isBlank()) {
throw new DukeException("The description of a view must contain date!");
Expand Down

0 comments on commit 0769902

Please sign in to comment.