check-meta: compare with null instead of using isNull

This commit is contained in:
Eman Resu
2026-07-03 19:00:46 -04:00
parent 2cc19cbccb
commit 9ab8fa7375
+5 -5
View File
@@ -495,7 +495,7 @@ let
let
values = attrValues cpeParts;
in
(length values == 11) && !any isNull values;
(length values == 11) && !any (v: v == null) values;
makeCPE =
{
part,
@@ -687,7 +687,7 @@ let
}:
let
withError =
if isNull error then
if error == null then
true
else
let
@@ -725,15 +725,15 @@ let
invalid = checkValidity' attrs;
problems = checkProblems attrs;
in
if isNull invalid then
if isNull problems then
if invalid == null then
if problems == null then
{
valid = "yes";
handled = true;
}
else
{
valid = if isNull problems.error then "warn" else "no";
valid = if problems.error == null then "warn" else "no";
handled = handle {
inherit attrs meta;
inherit (problems) error warnings;