aboutsummaryrefslogtreecommitdiff
path: root/autofill-parser/src/main/java/com
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-03-05 19:17:48 +0530
committerGitHub <noreply@github.com>2022-03-05 13:47:48 +0000
commitb8756a667c56f67d14b25286f2568f3eb3e8e9f3 (patch)
treece0c18086ac9f21f564f495e7435741c07106ea9 /autofill-parser/src/main/java/com
parent52c349188ba1c9a93ffcc3976aed652aca2ba418 (diff)
Cleanup IDE reported lints in autofill-parser and format-common (#1765)
Diffstat (limited to 'autofill-parser/src/main/java/com')
-rw-r--r--autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt2
1 files changed, 1 insertions, 1 deletions
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<T : Any>(
override val passwordFieldsToFillOnGenerate
get() = newPassword
override val passwordFieldsToSave
- get() = if (newPassword.isNotEmpty()) newPassword else currentPassword
+ get() = newPassword.ifEmpty { currentPassword }
}
@RequiresApi(Build.VERSION_CODES.O)