From 4338bfde0949860f33fe4ab0e1b8684d8db34323 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sun, 3 Mar 2024 16:09:40 +1300 Subject: [PATCH] lib.zipAttrs: Remove needless function wrapping Returning the partially applied `zipAttrsWith fn` is the same as `sets: zipAttrsWith fn sets`. --- lib/attrsets.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/attrsets.nix b/lib/attrsets.nix index 4f7d795c397f..d62d64f6c1d2 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.