Skip to content

Commit fc02844

Browse files
authored
Merge pull request #121 from BirdeeHub/docs
refactor(docs): docgen
2 parents 9dd2973 + e6aa042 commit fc02844

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/eval-graph.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let
2424
];
2525
};
2626

27-
stripStore = path: (pkgs.lib.removePrefix "/" (pkgs.lib.removePrefix "${rootPath}" path));
27+
stripStore = path: (pkgs.lib.removePrefix "${rootPath}/" path);
2828

2929
cleanNodes =
3030
node:
@@ -70,5 +70,5 @@ let
7070
if matchres != null then builtins.head matchres else node.key;
7171
};
7272
in
73-
[ (stripAnon (builtins.head flattened)) ]
74-
++ (if flattened != [ ] then builtins.tail flattened else [ ])
73+
(if builtins.length flattened > 0 then [ (stripAnon (builtins.head flattened)) ] else [ ])
74+
++ (if builtins.length flattened > 1 then builtins.tail flattened else [ ])

0 commit comments

Comments
 (0)