various: lib usage improvements - prefer elem over any for list inclusion conditions (#455789)

This commit is contained in:
Philip Taron
2025-10-27 13:21:20 +00:00
committed by GitHub
24 changed files with 38 additions and 44 deletions

View File

@@ -116,7 +116,7 @@ stdenv.mkDerivation rec {
]
++
lib.optionals
(lib.any (l: l == optimizationLevel) [
(lib.elem optimizationLevel [
"0"
"1"
"2"