Skip to content

Commit f8f7d75

Browse files
committed
Update some minor mistakes in logic and style issues
1 parent 86e9d17 commit f8f7d75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/seedu/address/logic/LogicManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void updateModelWithStorage(Command command, Storage storage, Model mode
100100
model.setAddressBook(storage.readAddressBook(((LoadCommand) command).getLoadPath()).get());
101101
}
102102
} catch (DataLoadingException e) {
103-
throw new CommandException(String.format(LOAD_ERROR_FORMAT, e.getMessage()),e);
103+
throw new CommandException(String.format(LOAD_ERROR_FORMAT, e.getMessage()), e);
104104
}
105105

106106
}

src/main/java/seedu/address/logic/parser/ParserUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static Path parsePathWithCheck(String path) throws ParseException {
147147
path = path.trim();
148148
final Path parsedPath = Paths.get("archived", path);
149149
if (!path.endsWith(".json") || path.contains("/") || !Files.exists(parsedPath)
150-
|| Files.isRegularFile(parsedPath)) {
150+
|| !Files.isRegularFile(parsedPath)) {
151151
throw new ParseException(LoadCommand.MESSAGE_USAGE);
152152
}
153153
return parsedPath;

0 commit comments

Comments
 (0)