lib.modules: avoid isAttrs check for ?

? is untyped in its input, and performs the isAttrs check already,
returning false.
This commit is contained in:
Eman Resu
2026-06-03 17:39:26 -04:00
committed by Eman Resu
parent 93e3c83548
commit d95430f876

View File

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