mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00:00
various: lib usage improvements - prefer elem over any for list inclusion conditions (#455789)
This commit is contained in:
@@ -116,7 +116,7 @@ stdenv.mkDerivation rec {
|
||||
]
|
||||
++
|
||||
lib.optionals
|
||||
(lib.any (l: l == optimizationLevel) [
|
||||
(lib.elem optimizationLevel [
|
||||
"0"
|
||||
"1"
|
||||
"2"
|
||||
|
||||
Reference in New Issue
Block a user