From 099a322b3a539ecc8876561c8ffd0cbc38e481ca Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Thu, 18 Jun 2026 11:49:23 -0400 Subject: [PATCH] lib.lists.listDfs: compare to [] instead of checking length --- lib/lists.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lists.nix b/lib/lists.nix index 8766d3f25d21..78c173a63bfa 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -1184,13 +1184,13 @@ rec { c = filter (x: before x us) visited; b = partition (x: before x us) rest; in - if stopOnCycles && (length c > 0) then + if stopOnCycles && c != [ ] then { cycle = us; loops = c; inherit visited rest; } - else if length b.right == 0 then + else if b.right == [ ] then # nothing is before us { minimal = us;