mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Avoid logging warning why attempting to delete unexisting file.
This commit is contained in:
committed by
Benoit Marty
parent
7d080ea337
commit
e73f96eb6a
+1
@@ -25,6 +25,7 @@ import java.util.Locale
|
||||
import java.util.UUID
|
||||
|
||||
fun File.safeDelete() {
|
||||
if (exists().not()) return
|
||||
tryOrNull(
|
||||
onError = {
|
||||
Timber.e(it, "Error, unable to delete file $path")
|
||||
|
||||
Reference in New Issue
Block a user