From 9fadf527fe86e2c7baf41d0a661acbdff2c5da26 Mon Sep 17 00:00:00 2001 From: fdai7887 Date: Thu, 8 Feb 2024 16:17:18 +0100 Subject: [PATCH] refactoring: fixed initializeDummyData in Main to only be able to run once --- src/main/java/org/example/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java index e7a9a57..296c1ce 100644 --- a/src/main/java/org/example/Main.java +++ b/src/main/java/org/example/Main.java @@ -51,9 +51,9 @@ public class Main { if(!DummyDataExists){ administration.initializeDummyData(); System.out.println("Dummy data initialized."); - + DummyDataExists = true; } - else{System.out.println("Dummy Data could already exists");} + else{System.out.println("Dummy Data already exists");} break; case 8: