Skip to content

[th/strv-contains] all: use nm_strv_contains() instead of nm_strv_find_first() for membership check

Thomas Haller requested to merge th/strv-contains into main

nm_strv_find_first() is useful (and used) to find the first index (if any). I can thus also used to check for membership.

However, we also have nm_strv_contains(), which seems better for readability, when we check for membership. Use it.

Merge request reports