treewide: remove unnecessary builtins prefix (#1322)
This commit is contained in:
parent
69b3dd05e6
commit
4830942fa2
3 changed files with 7 additions and 7 deletions
|
|
@ -331,7 +331,7 @@ let
|
|||
${fence}```
|
||||
''
|
||||
else
|
||||
builtins.throw "unexpected value type: ${builtins.typeOf value}";
|
||||
throw "unexpected value type: ${builtins.typeOf value}";
|
||||
|
||||
# Prefix to remove from file paths when listing where an option is declared.
|
||||
declarationPrefix = "${inputs.self}";
|
||||
|
|
@ -353,7 +353,7 @@ let
|
|||
if lib.hasPrefix declarationPrefix declarationString then
|
||||
"- [${filePath}](${declarationPermalink}/${filePath})"
|
||||
else
|
||||
builtins.throw "declaration not in ${declarationPrefix}: ${declarationString}";
|
||||
throw "declaration not in ${declarationPrefix}: ${declarationString}";
|
||||
|
||||
# You can embed HTML inside a Markdown document, but to render further
|
||||
# Markdown between the HTML tags, it must be surrounded by blank lines:
|
||||
|
|
@ -525,7 +525,7 @@ let
|
|||
if hasTitle then
|
||||
" - [${title}](${relativePath})"
|
||||
else
|
||||
builtins.throw "page must start with a title: ${path}";
|
||||
throw "page must start with a title: ${path}";
|
||||
in
|
||||
summary
|
||||
// {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
let
|
||||
copyModules =
|
||||
builtins.map
|
||||
map
|
||||
(
|
||||
{
|
||||
path,
|
||||
|
|
|
|||
|
|
@ -167,13 +167,13 @@ let
|
|||
lib.mapAttrsToList (
|
||||
testbed: type:
|
||||
if type != "regular" then
|
||||
builtins.throw "${testbed} must be regular: ${type}"
|
||||
throw "${testbed} must be regular: ${type}"
|
||||
|
||||
else if !lib.hasSuffix ".nix" testbed then
|
||||
builtins.throw "testbed must be a Nix file: ${testbeds}/${testbed}"
|
||||
throw "testbed must be a Nix file: ${testbeds}/${testbed}"
|
||||
|
||||
else if testbed == ".nix" then
|
||||
builtins.throw "testbed must have a name: ${testbed}"
|
||||
throw "testbed must have a name: ${testbed}"
|
||||
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue