File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
solr-backup/src/main/java/eu/xenit/solr/backup/s3 Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ private static S3Client createInternalClient(S3BackupRepositoryConfig config) th
110110 S3ClientBuilder clientBuilder = S3Client .builder ();
111111
112112 S3Configuration configuration = S3Configuration .builder ()
113- .checksumValidationEnabled (config .getChecksumValidationEnabled ())
113+ .checksumValidationEnabled (config .isChecksumValidationEnabled ())
114114 .build ();
115115 clientBuilder .serviceConfiguration (configuration );
116116
@@ -153,9 +153,7 @@ private static S3Client createInternalClient(S3BackupRepositoryConfig config) th
153153 * SDK v2 Migration: The method `withPathStyleAccessEnabled(boolean)` from v1 is
154154 * replaced by `forcePathStyle(boolean)` in v2.
155155 */
156- if (config .getPathStyleAccessEnabled () != null ) {
157- clientBuilder .forcePathStyle (config .getPathStyleAccessEnabled ());
158- }
156+ clientBuilder .forcePathStyle (config .isPathStyleAccessEnabled ());
159157
160158 return clientBuilder .build ();
161159 }
You can’t perform that action at this time.
0 commit comments