lib/aws-sdk-s3/plugins/accelerate.rb in aws-sdk-s3-1.61.2 vs lib/aws-sdk-s3/plugins/accelerate.rb in aws-sdk-s3-1.62.0
- old
+ new
@@ -76,16 +76,16 @@
context.http_request.headers.delete('expect')
end
def validate_bucket_name!(bucket_name)
unless BucketDns.dns_compatible?(bucket_name, _ssl = true)
- msg = "unable to use `accelerate: true` on buckets with "
- msg << "non-DNS compatible names"
+ msg = 'unable to use `accelerate: true` on buckets with '\
+ 'non-DNS compatible names'
raise ArgumentError, msg
end
if bucket_name.include?('.')
- msg = "unable to use `accelerate: true` on buckets with dots"
- msg << "in their name: #{bucket_name.inspect}"
+ msg = 'unable to use `accelerate: true` on buckets with dots'\
+ "in their name: #{bucket_name.inspect}"
raise ArgumentError, msg
end
end
end