mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 05:20:00 +00:00
lib.modules: avoid isAttrs check for ?
? is untyped in its input, and performs the isAttrs check already, returning false.
This commit is contained in:
@@ -1197,9 +1197,7 @@ let
|
||||
let
|
||||
d = head defs;
|
||||
in
|
||||
addErrorContext "while evaluating definitions from `${d.file}':" (
|
||||
!(isAttrs d.value && d.value ? _type)
|
||||
)
|
||||
addErrorContext "while evaluating definitions from `${d.file}':" (!d.value ? _type)
|
||||
)
|
||||
then
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user