Skip to content

Commit

Permalink
rename DOTENV -> dotEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg3lopez committed Oct 26, 2023
1 parent 969727f commit 7715520
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@
* @see io.github.cdimascio.dotenv.Dotenv
*/
class DotEnv {
private static Dotenv DOTENV;
private static Dotenv dotEnv;

static {
DOTENV = Dotenv.configure().ignoreIfMissing().load();
dotEnv = Dotenv.configure().ignoreIfMissing().load();
}

private DotEnv() {}

public static String get(String key) {
return DOTENV.get(key);
return dotEnv.get(key);
}

public static String get(String key, String defaultValue) {
return DOTENV.get(key, defaultValue);
return dotEnv.get(key, defaultValue);
}

// Leave with default scope
static void load(Dotenv dotenv) {
DOTENV = dotenv;
dotEnv = dotenv;
}
}

0 comments on commit 7715520

Please sign in to comment.