[reactives3client] Remove try with no catches

This commit is contained in:
Paul Campbell 2019-05-09 18:47:23 +01:00
parent 232ea40be6
commit 69029730e2

View file

@ -35,12 +35,10 @@ private class ReactiveS3Client extends S3Client {
.key(remoteKey)
.build()
val body = AsyncRequestBody.fromFile(localFile)
try {
for {
_ <- putStrLn(s"S3:PutObject: $bucket : $remoteKey")
_ <- s3Client.putObject(request, body)
_ <- putStrLn(" -- Done")
} yield ()
}
for {
_ <- putStrLn(s"S3:PutObject: $bucket : $remoteKey")
_ <- s3Client.putObject(request, body)
_ <- putStrLn(" -- Done")
} yield ()
}
}