Don't log tryOrNull errors unnecessarily

This commit is contained in:
Moez Bhatti
2018-07-02 18:01:01 -04:00
parent 95b80ad408
commit 9cea675bd8
4 changed files with 10 additions and 7 deletions
@@ -163,7 +163,7 @@ class SyncRepositoryImpl @Inject constructor(
}
// If we don't have a valid id, return null
val id = tryOrNull { ContentUris.parseId(uri) } ?: return null
val id = tryOrNull(false) { ContentUris.parseId(uri) } ?: return null
// Check if the message already exists, so we can reuse the id
val existingId = Realm.getDefaultInstance().use { realm ->