Skip to content

Commit c2f7861

Browse files
committed
Remove redundant if statements in traceback.c
1 parent 782217f commit c2f7861

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Python/traceback.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,9 +980,6 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
980980
/* Trampoline frame */
981981
frame = frame->previous;
982982
}
983-
if (frame == NULL) {
984-
break;
985-
}
986983
/* Can't have more than one shim frame in a row */
987984
assert(frame->owner != FRAME_OWNED_BY_CSTACK);
988985
depth++;

0 commit comments

Comments
 (0)