Browse Source

Fix rubocop offences

pull/1872/head
Rachael Booth 3 years ago committed by Sam Seed
parent
commit
310514573e
  1. 13
      app/services/storage/s3_service.rb

13
app/services/storage/s3_service.rb

@ -54,11 +54,14 @@ module Storage
end
def create_client
credentials = PlatformHelper.is_paas? ?
Aws::Credentials.new(
@configuration.access_key_id,
@configuration.secret_access_key,
) : Aws::ECSCredentials.new
credentials = if PlatformHelper.is_paas?
Aws::Credentials.new(
@configuration.access_key_id,
@configuration.secret_access_key,
)
else
Aws::ECSCredentials.new
end
Aws::S3::Client.new(
region: @configuration.region,
credentials:,

Loading…
Cancel
Save