Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
  • Loading branch information
DarshitChanpura committed Dec 14, 2023
1 parent 4886180 commit 65fa400
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void updateAdminPassword() {

// Read custom password from environment variable
String initialAdminPassword = System.getenv().get(ConfigConstants.OPENSEARCH_INITIAL_ADMIN_PASSWORD);
if (initialAdminPassword != null && !initialAdminPassword.isEmpty()) {
if (!Strings.isNullOrEmpty(initialAdminPassword)) {
ADMIN_PASSWORD = initialAdminPassword;
}

Expand Down

0 comments on commit 65fa400

Please sign in to comment.