chore: suppress invalid suggestion

This commit is contained in:
Harsh Shandilya 2023-03-27 17:48:38 +05:30
parent 8b97a4a3f1
commit 25ffacd213
No known key found for this signature in database

View file

@ -178,6 +178,9 @@ public sealed class AutofillScenario<out T : Any> {
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()