mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
Removes runCatching from TemporaryFileCreator
This commit is contained in:
parent
b76ec78c5d
commit
4a010a7a2a
1 changed files with 2 additions and 4 deletions
|
@ -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 a new issue