Skip to content

Commit

Permalink
fix imports, return immutable empty map
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmestefanjay committed Nov 11, 2024
1 parent 3dcac92 commit 608c99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.vault.core.VaultTemplate;
import org.springframework.vault.support.VaultResponse;

import java.util.Collections;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.vault.core.VaultVersionedKeyValueTemplate;
import org.springframework.vault.support.Versioned;

import java.util.Collections;
import java.util.Map;
import java.util.Optional;

Expand Down Expand Up @@ -45,6 +46,6 @@ private Map<String, Object> readSecretsFromVault() {
} catch (IllegalStateException e) {
log.debug("Cannot find secrets in path {}", path);
}
return Map.of();
return Collections.emptyMap();
}
}

0 comments on commit 608c99b

Please sign in to comment.