Skip to content

Commit

Permalink
fix: fix endpoint check for s3 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkkkklee committed Nov 20, 2023
1 parent ff17d3e commit 81f5d30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public S3(ObjectStorageConfig objectStorageConfig) {
builder.region(region);
builder.credentialsProvider(StaticCredentialsProvider.create(awsCreds));

if (endpoint == null || endpoint.isEmpty()) {
if (endpoint != null && !endpoint.isEmpty()) {
builder.endpointOverride(URI.create(endpoint));
}

Expand Down

0 comments on commit 81f5d30

Please sign in to comment.