Skip to content

Commit 9772ecb

Browse files
authored
Merge pull request #235197 from hercules-ci/simplify-concatMapAttrs-trace
lib.concatMapAttrs: Simplify stack trace
2 parents 58bf1f8 + 5319ddf commit 9772ecb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/attrsets.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ rec {
123123
{ x = "a"; y = "b"; }
124124
=> { x = "a"; xa = "a"; y = "b"; yb = "b"; }
125125
*/
126-
concatMapAttrs = f: flip pipe [ (mapAttrs f) attrValues (foldl' mergeAttrs { }) ];
126+
concatMapAttrs = f: v:
127+
foldl' mergeAttrs { }
128+
(attrValues
129+
(mapAttrs f v)
130+
);
127131

128132

129133
/* Update or set specific paths of an attribute set.

0 commit comments

Comments
 (0)