diff options
author | adisbladis <adisbladis@gmail.com> | 2024-03-03 16:09:40 +1300 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2024-03-03 16:17:49 +1300 |
commit | 4338bfde0949860f33fe4ab0e1b8684d8db34323 (patch) | |
tree | 3a0055bdd21094b687ed79851d20f5c8c20a9788 /lib/attrsets.nix | |
parent | 31f91738fb4aae351f1ee93300139c751dcf8196 (diff) |
lib.zipAttrs: Remove needless function wrapping
Returning the partially applied `zipAttrsWith fn` is the same as `sets: zipAttrsWith fn sets`.
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r-- | lib/attrsets.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 4f7d795c397f2..d62d64f6c1d2f 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -870,10 +870,7 @@ rec { Type: zipAttrs :: [ AttrSet ] -> AttrSet */ - zipAttrs = - # List of attribute sets to zip together. - sets: - zipAttrsWith (name: values: values) sets; + zipAttrs = zipAttrsWith (name: values: values); /* Merge a list of attribute sets together using the `//` operator. |