From 2b362eeb3bc85dbc76cfa1032a9ba13fe672e02a Mon Sep 17 00:00:00 2001 From: Poh Yee Heng Date: Thu, 15 Sep 2016 23:09:38 +0800 Subject: [PATCH] Revert "Added validation is check isMutating() before saving the file" This reverts commit e588d51661fdfe50b9454a25ac436c5aa0d9fc3f. --- src/seedu/addressbook/logic/Logic.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/seedu/addressbook/logic/Logic.java b/src/seedu/addressbook/logic/Logic.java index 976a1d533..17afd61a0 100644 --- a/src/seedu/addressbook/logic/Logic.java +++ b/src/seedu/addressbook/logic/Logic.java @@ -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; }