From 25ffacd21385d8ae48c9b781e8ff9a838a0dccb5 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 27 Mar 2023 17:48:38 +0530 Subject: chore: suppress invalid suggestion --- .../com/github/androidpasswordstore/autofillparser/AutofillScenario.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'autofill-parser/src') 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 08eab3ff..9d620fe6 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 @@ -178,6 +178,9 @@ public sealed class AutofillScenario { public val hasFieldsToSave: Boolean get() = fieldsToSave.isNotEmpty() + @Suppress( + "ConvertArgumentToSet" + ) // This is a single item List, Set conversion only adds overhead. public val hasPasswordFieldsToSave: Boolean get() = fieldsToSave.minus(listOfNotNull(username)).isNotEmpty() -- cgit v1.2.3