ci/eval: fix comparing to null in getLabels

Check if `to` is null _before_ comparing it to `rebuildCount`.
This commit is contained in:
Matt Sturgeon
2025-06-22 20:27:41 +01:00
parent 9f7c0e8a7e
commit 7c7009a3da
+1 -1
View File
@@ -176,7 +176,7 @@ rec {
lib.mapAttrsToList (
kernel: rebuildCount:
let
range = from: to: from <= rebuildCount && (rebuildCount <= to || to == null);
range = from: to: from <= rebuildCount && (to == null || rebuildCount <= to);
in
lib.mapAttrs' (number: lib.nameValuePair "10.rebuild-${kernel}: ${number}") {
"0" = range 0 0;