From f44d4a3a94bf52db7d41c40e31fcb432c5d2f296 Mon Sep 17 00:00:00 2001 From: Cazh1 Date: Sun, 12 Nov 2023 13:29:15 +0800 Subject: [PATCH] Update Code Quality --- src/main/java/seedu/cafectrl/storage/Storage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/cafectrl/storage/Storage.java b/src/main/java/seedu/cafectrl/storage/Storage.java index bed833ebba..2acbb88873 100644 --- a/src/main/java/seedu/cafectrl/storage/Storage.java +++ b/src/main/java/seedu/cafectrl/storage/Storage.java @@ -66,7 +66,7 @@ private boolean isFileCorrupted(ArrayList encodedStringArrayList) { if (encodedMenuHash != fileHash) { return true; } - } catch (NumberFormatException e) { + } catch (Exception e) { isHashStringTampered = true; return true; }