treewide: remove unnecessary builtins prefix (#1322)

This commit is contained in:
awwpotato 2025-05-21 00:51:24 -07:00 committed by GitHub
parent 69b3dd05e6
commit 4830942fa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

@ -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
// {

View file

@ -8,7 +8,7 @@
let
copyModules =
builtins.map
map
(
{
path,

View file

@ -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
{