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 {
|
suspend fun create(): File {
|
||||||
return withContext(Dispatchers.IO) {
|
return withContext(Dispatchers.IO) {
|
||||||
runCatching {
|
|
||||||
File.createTempFile(UUID.randomUUID().toString(), null, context.cacheDir)
|
File.createTempFile(UUID.randomUUID().toString(), null, context.cacheDir)
|
||||||
.apply { mkdirs() }
|
.apply { mkdirs() }
|
||||||
}.getOrThrow()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user