Removes runCatching from TemporaryFileCreator
This commit is contained in:
parent
b76ec78c5d
commit
4a010a7a2a
|
@ -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() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue