Skip to content

Commit

Permalink
Change if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejNedic committed Sep 18, 2024
1 parent c9beff0 commit 240f228
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ else if (awsProperties.getEndpoint() != null) {
S3Client s3Client(S3Properties properties, S3ClientBuilder s3ClientBuilder,
ObjectProvider<S3RsaProvider> rsaProvider, ObjectProvider<S3AesProvider> aesProvider)
throws NoSuchAlgorithmException {
if (ClassUtils.isPresent("software.amazon.encryption.s3.S3EncryptionClient", null)) {
if (ClassUtils.isPresent("software.amazon.encryption.s3.S3EncryptionClient", null)
|| aesProvider.getIfAvailable() != null || rsaProvider.getIfAvailable() != null) {
return s3EncClient(properties, s3ClientBuilder, rsaProvider, aesProvider);
}
return s3ClientBuilder.build();
Expand Down

0 comments on commit 240f228

Please sign in to comment.