From df953b0021931ef278a25b4e538d9daac3dac876 Mon Sep 17 00:00:00 2001 From: Ben Dean-Kawamura Date: Thu, 14 Oct 2021 13:58:58 -0400 Subject: [PATCH] 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. --- .../settings/logins/controller/SavedLoginsStorageController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/settings/logins/controller/SavedLoginsStorageController.kt b/app/src/main/java/org/mozilla/fenix/settings/logins/controller/SavedLoginsStorageController.kt index 7d61b7f2b5..8d29528748 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/logins/controller/SavedLoginsStorageController.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/logins/controller/SavedLoginsStorageController.kt @@ -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]