Skip to content

Commit cab8a41

Browse files
committed
fix typo
1 parent f72e64a commit cab8a41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/DefaultS3ClientFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ private S3AsyncClient createS3CrtAsyncClient(URI uri, S3ClientCreationParameters
173173
AWSRegionEndpointInformation regionEndpointInformation =
174174
AWSRegionEndpointResolver.getEndpointRegionResolution(parameters, conf);
175175

176-
if (regionEndpointInformation.getRegion() == null) {
176+
if (regionEndpointInformation.getRegion() != null) {
177177
s3CrtAsyncClientBuilder.region(regionEndpointInformation.getRegion());
178178
}
179179

180-
if (regionEndpointInformation.getEndpoint() == null) {
180+
if (regionEndpointInformation.getEndpoint() != null) {
181181
s3CrtAsyncClientBuilder.endpointOverride(regionEndpointInformation.getEndpoint());
182182
}
183183

0 commit comments

Comments
 (0)