Skip to content

Commit 4fa0832

Browse files
committed
Remove redundant len check
1 parent 0360a72 commit 4fa0832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/profile/stack_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self):
1111

1212
def collect(self, stack_frames):
1313
for thread_id, frames in stack_frames:
14-
if frames and len(frames) > 0:
14+
if frames:
1515
# Store the complete call stack (reverse order - root first)
1616
call_tree = list(reversed(frames))
1717
self.call_trees.append(call_tree)

0 commit comments

Comments
 (0)