2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

Make findDuplicate() suspend

findLoginToUpdate() should be suspend, but I didn't get mark it that way
on the initial logins work.  Let's make this one suspend, then I can
update findLoginToUpdate() in a-c.
This commit is contained in:
Ben Dean-Kawamura 2021-10-14 13:58:58 -04:00 committed by mergify[bot]
parent e52000bb20
commit df953b0021

View File

@ -184,7 +184,7 @@ open class SavedLoginsStorageController(
}
}
private fun findDuplicate(entry: LoginEntry, currentGuid: String? = null) {
private suspend fun findDuplicate(entry: LoginEntry, currentGuid: String? = null) {
// Ensure that we have a valid, non-blank password. The value doesn't
// matter for dupe-checking and we want to make sure that
// findLoginToUpdate() doesn't throw an error because the [LoginEntry]