Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaty committed Oct 27, 2016
1 parent 373fefa commit 9917359
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/main/java/seedu/task/logic/commands/AddCommand.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package seedu.task.logic.commands;

import static seedu.task.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;

import java.util.HashSet;
import java.util.Set;

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/seedu/task/logic/parser/AddParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@

import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;

import seedu.task.commons.exceptions.IllegalValueException;
import seedu.task.logic.commands.AddCommand;
import seedu.task.logic.commands.Command;
import seedu.task.logic.commands.CommandResult;
import seedu.task.logic.commands.IncorrectCommand;

public class AddParser extends BaseParser {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/task/model/task/DateTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public DateTime(String dateTime) throws IllegalValueException {
}

public DateTime(Long epochMilli, boolean isEpoch) {
if (epochMilli == null) {
if (epochMilli == null || !isEpoch) {
this.value = Optional.empty();
return;
}
Expand Down

0 comments on commit 9917359

Please sign in to comment.