Skip to content

Commit

Permalink
Revert "Added validation is check isMutating() before saving the file"
Browse files Browse the repository at this point in the history
This reverts commit e588d51.
  • Loading branch information
Yeehengg committed Sep 15, 2016
1 parent e588d51 commit 2b362ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/seedu/addressbook/logic/Logic.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ public CommandResult execute(String userCommandText) throws Exception {
private CommandResult execute(Command command) throws Exception {
command.setData(addressBook, lastShownList);
CommandResult result = command.execute();
if (command.isMutating()) {
storage.save(addressBook);

}
storage.save(addressBook);
return result;
}

Expand Down

0 comments on commit 2b362ee

Please sign in to comment.