From ea27621d4a2d9c0d0122d23004ef317077783298 Mon Sep 17 00:00:00 2001 From: Simone Locci Date: Tue, 14 Jul 2020 09:46:14 +0200 Subject: [PATCH] Fix review Signed-off-by: Simone Locci --- registry/storage/driver/s3-aws/s3.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/registry/storage/driver/s3-aws/s3.go b/registry/storage/driver/s3-aws/s3.go index 3b1c9eb5..fe31d390 100644 --- a/registry/storage/driver/s3-aws/s3.go +++ b/registry/storage/driver/s3-aws/s3.go @@ -477,10 +477,7 @@ func New(params DriverParameters) (*Driver, error) { awsConfig.WithEndpoint(params.RegionEndpoint) } - if params.S3Accelerate { - awsConfig.WithS3UseAccelerate(true) - } - + awsConfig.WithS3UseAccelerate(params.S3Accelerate) awsConfig.WithRegion(params.Region) awsConfig.WithDisableSSL(!params.Secure) if params.UseDualStack {