Skip to content

Commit

Permalink
rename single-letter variable to fully named one to be in line with p…
Browse files Browse the repository at this point in the history
…roject best practices
  • Loading branch information
esuomi authored Jun 10, 2024
1 parent 461e2fe commit 0cf7434
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public AwsCredentialsProvider cloudCredentials() {

@Bean
public S3Client s3Client(AwsCredentialsProvider credentialsProvider) {
S3ClientBuilder b = S3Client
S3ClientBuilder builder = S3Client
.builder()
.region(Region.of(region))
.credentialsProvider(credentialsProvider)
Expand All @@ -84,8 +84,8 @@ public S3Client s3Client(AwsCredentialsProvider credentialsProvider) {
.build()
);
if (endpointOverride != null) {
b = b.endpointOverride(URI.create(endpointOverride));
builder = builder.endpointOverride(URI.create(endpointOverride));
}
return b.build();
return builder.build();
}
}

0 comments on commit 0cf7434

Please sign in to comment.