From b8756a667c56f67d14b25286f2568f3eb3e8e9f3 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 5 Mar 2022 19:17:48 +0530 Subject: Cleanup IDE reported lints in autofill-parser and format-common (#1765) --- .../com/github/androidpasswordstore/autofillparser/AutofillScenario.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autofill-parser/src/main/java/com') diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt index 66ef6d0e..33a2a3fd 100644 --- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt +++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt @@ -181,7 +181,7 @@ internal data class ClassifiedAutofillScenario( override val passwordFieldsToFillOnGenerate get() = newPassword override val passwordFieldsToSave - get() = if (newPassword.isNotEmpty()) newPassword else currentPassword + get() = newPassword.ifEmpty { currentPassword } } @RequiresApi(Build.VERSION_CODES.O) -- cgit v1.2.3