From e2b51e01bee3ad6c1c0f727b820b8f8e18e24cb2 Mon Sep 17 00:00:00 2001 From: Ataf Fazledin Ahamed Date: Thu, 7 Dec 2023 22:38:54 +0600 Subject: traverse.py: use > 0 instead of >= 0 (#41482) Signed-off-by: fazledyn-or --- lib/spack/spack/traverse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/traverse.py b/lib/spack/spack/traverse.py index 580e487724..311d67c5e1 100644 --- a/lib/spack/spack/traverse.py +++ b/lib/spack/spack/traverse.py @@ -251,7 +251,7 @@ def traverse_depth_first_edges_generator(edges, visitor, post_order=False, root= neighbors = [EdgeAndDepth(edge=n, depth=edge.depth + 1) for n in visitor.neighbors(edge)] # This extra branch is just for efficiency. - if len(neighbors) >= 0: + if len(neighbors) > 0: for item in traverse_depth_first_edges_generator( neighbors, visitor, post_order, root, depth ): -- cgit v1.2.3-70-g09d2