Browse Source

refactoring: fixed initializeDummyData in Main to only be able to run once

remotes/origin/fdai7780
fdai7887 11 months ago
parent
commit
9fadf527fe
  1. 4
      src/main/java/org/example/Main.java

4
src/main/java/org/example/Main.java

@ -51,9 +51,9 @@ public class Main {
if(!DummyDataExists){ if(!DummyDataExists){
administration.initializeDummyData(); administration.initializeDummyData();
System.out.println("Dummy data initialized."); 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; break;
case 8: case 8:

Loading…
Cancel
Save