Skip to content

Commit

Permalink
made changes before merging branch 8 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccalaujx committed Aug 30, 2021
2 parents f2aedc3 + e6a51b1 commit 6379c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class Event extends Task {

protected String at;
protected String date;
protected String date = "";

public Event(String description, String at) throws DukeException {
super(description);
Expand All @@ -26,7 +26,7 @@ public Event(String description, String at) throws DukeException {
if (at.isEmpty() || at == "" || at == " ") {
throw new DukeException("☹ OOPS!!! The time of the event must be indicated.");
} else {
this.at = date;
this.at = this.date;
}
}

Expand Down

0 comments on commit 6379c5c

Please sign in to comment.