Removes runCatching from TemporaryFileCreator

This commit is contained in:
ericdecanini 2022-04-19 13:31:13 +02:00
parent b76ec78c5d
commit 4a010a7a2a

View file

@ -28,10 +28,8 @@ internal class TemporaryFileCreator @Inject constructor(
) {
suspend fun create(): File {
return withContext(Dispatchers.IO) {
runCatching {
File.createTempFile(UUID.randomUUID().toString(), null, context.cacheDir)
.apply { mkdirs() }
}.getOrThrow()
File.createTempFile(UUID.randomUUID().toString(), null, context.cacheDir)
.apply { mkdirs() }
}
}
}