Removes runCatching from TemporaryFileCreator

This commit is contained in:
ericdecanini 2022-04-19 13:31:13 +02:00
parent b76ec78c5d
commit 4a010a7a2a
1 changed files with 2 additions and 4 deletions

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()
}
}
}