File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/de/stklcode/jvault/connector Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ public HTTPVaultConnectorBuilder withToken(final String token) {
301301 */
302302 public HTTPVaultConnectorBuilder fromEnv () throws VaultConnectorException {
303303 /* Parse URL from environment variable */
304- if (System .getenv (ENV_VAULT_ADDR ) != null && !System .getenv (ENV_VAULT_ADDR ).trim (). isEmpty ()) {
304+ if (System .getenv (ENV_VAULT_ADDR ) != null && !System .getenv (ENV_VAULT_ADDR ).isBlank ()) {
305305 try {
306306 var url = new URL (System .getenv (ENV_VAULT_ADDR ));
307307 this .host = url .getHost ();
@@ -325,7 +325,7 @@ public HTTPVaultConnectorBuilder fromEnv() throws VaultConnectorException {
325325 token = System .getenv (ENV_VAULT_TOKEN );
326326
327327 /* Parse certificate, if set */
328- if (System .getenv (ENV_VAULT_CACERT ) != null && !System .getenv (ENV_VAULT_CACERT ).trim (). isEmpty ()) {
328+ if (System .getenv (ENV_VAULT_CACERT ) != null && !System .getenv (ENV_VAULT_CACERT ).isBlank ()) {
329329 return withTrustedCA (Paths .get (System .getenv (ENV_VAULT_CACERT )));
330330 }
331331 return this ;
You can’t perform that action at this time.
0 commit comments