Skip to content

Commit 029caab

Browse files
v1.12.3
- Taxonomy query support - Early Access Feature Support
1 parent 95183cc commit 029caab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/com/contentstack/sdk/Credentials.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import io.github.cdimascio.dotenv.Dotenv;
44
import io.github.cdimascio.dotenv.DotenvException;
5-
import lombok.var;
65

7-
import java.io.File;
86
import java.rmi.AccessException;
97

108
public class Credentials {
@@ -27,7 +25,7 @@ public static Dotenv getEnv() {
2725
try {
2826
env = Dotenv.load();
2927
} catch (DotenvException ex) {
30-
System.out.println("Could not load.env");
28+
ex.getLocalizedMessage();
3129
}
3230
return env;
3331
}
@@ -50,7 +48,7 @@ private Credentials() throws AccessException {
5048

5149
public static Stack getStack() {
5250
if (stack == null) {
53-
var envCheck = envChecker();
51+
envChecker();
5452
synchronized (Credentials.class) {
5553
if (stack == null) {
5654
try {

0 commit comments

Comments
 (0)