mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
check-meta: compare with null instead of using isNull
This commit is contained in:
parent
2cc19cbccb
commit
9ab8fa7375
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue