Skip to content

Commit 07fc619

Browse files
committed
i cant believe this...
1 parent e6a65d2 commit 07fc619

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/src/main/java/utils/HibernateUtil.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class HibernateUtil {
2323

2424
try {
2525
String env = System.getenv("ENVIRONMENT"); // "test" or "prod" or "dev"
26-
26+
boolean loaded = false;
2727
if (env == null)
2828
env = "dev";
2929
String propsFile;
@@ -33,13 +33,14 @@ public class HibernateUtil {
3333
break;
3434
case "prod":
3535
propsFile = null;
36+
loaded = true;
3637
break;
3738
default:
3839
propsFile = "db.properties";
3940
}
4041

4142
Properties properties = new Properties();
42-
boolean loaded = false;
43+
4344

4445
if (propsFile != null) {
4546

0 commit comments

Comments
 (0)