File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 4646 sanitize =
4747 v :
4848 if v ? _type && v ? text then
49- builtins . unsafeDiscardStringContext (
50- if v . _type == "literalExpression" then "```nix\n ${ toString v . text } \n ```" else toString v . text
51- )
49+ if v . _type == "literalExpression" then "```nix\n ${ toString v . text } \n ```" else toString v . text
5250 else if lib . isStringLike v && ! builtins . isString v then
53- builtins . unsafeDiscardStringContext "`<${ if v ? name then "derivation ${ v . name } " else v } >`"
51+ "`<${ if v ? name then "derivation ${ v . name } " else v } >`"
5452 else if builtins . isString v then
55- builtins . unsafeDiscardStringContext v
53+ v
5654 else if builtins . isList v then
5755 map sanitize v
5856 else if lib . isFunction v then
59- builtins . unsafeDiscardStringContext "`<function with arguments ${
57+ "`<function with arguments ${
6058 lib . pipe v [
6159 lib . functionArgs
6260 ( lib . mapAttrsToList ( n : v : "${ n } ${ lib . optionalString v "?" } " ) )
You can’t perform that action at this time.
0 commit comments