summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAtaf Fazledin Ahamed <ataf@openrefactory.com>2023-12-07 22:38:54 +0600
committerGitHub <noreply@github.com>2023-12-07 09:38:54 -0700
commite2b51e01bee3ad6c1c0f727b820b8f8e18e24cb2 (patch)
tree060c281b2f694694141baa9038245f3c363242a2 /lib
parenta04ee77f777475d59f322d13b24fffbb2eeee8d8 (diff)
downloadspack-e2b51e01bee3ad6c1c0f727b820b8f8e18e24cb2.tar.gz
spack-e2b51e01bee3ad6c1c0f727b820b8f8e18e24cb2.tar.bz2
spack-e2b51e01bee3ad6c1c0f727b820b8f8e18e24cb2.tar.xz
spack-e2b51e01bee3ad6c1c0f727b820b8f8e18e24cb2.zip
traverse.py: use > 0 instead of >= 0 (#41482)
Signed-off-by: fazledyn-or <ataf@openrefactory.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/traverse.py2
1 files changed, 1 insertions, 1 deletions
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
):