Fix review

Signed-off-by: Simone Locci <simonelocci88@gmail.com>
This commit is contained in:
Simone Locci 2020-07-14 09:46:14 +02:00 committed by Simone Locci
parent 51c0c8148a
commit ea27621d4a
No known key found for this signature in database
GPG key ID: EA8A965E9EA17D84

View file

@ -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 {