[reactives3client] Remove try with no catches
This commit is contained in:
parent
232ea40be6
commit
69029730e2
1 changed files with 5 additions and 7 deletions
|
@ -35,7 +35,6 @@ private class ReactiveS3Client extends S3Client {
|
||||||
.key(remoteKey)
|
.key(remoteKey)
|
||||||
.build()
|
.build()
|
||||||
val body = AsyncRequestBody.fromFile(localFile)
|
val body = AsyncRequestBody.fromFile(localFile)
|
||||||
try {
|
|
||||||
for {
|
for {
|
||||||
_ <- putStrLn(s"S3:PutObject: $bucket : $remoteKey")
|
_ <- putStrLn(s"S3:PutObject: $bucket : $remoteKey")
|
||||||
_ <- s3Client.putObject(request, body)
|
_ <- s3Client.putObject(request, body)
|
||||||
|
@ -43,4 +42,3 @@ private class ReactiveS3Client extends S3Client {
|
||||||
} yield ()
|
} yield ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue