Unverified Commit 7c7009a3 authored by Matt Sturgeon's avatar Matt Sturgeon
Browse files

ci/eval: fix comparing to null in getLabels

Check if `to` is null _before_ comparing it to `rebuildCount`.
parent 9f7c0e8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;