mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-40898: Remove redundant if statements in tp_traverse (GH-20692)
This commit is contained in:
parent
b8867e5d5a
commit
47a23fc63f
4 changed files with 5 additions and 13 deletions
|
|
@ -1504,12 +1504,8 @@ Overlapped_traverse(OverlappedObject *self, visitproc visit, void *arg)
|
|||
}
|
||||
break;
|
||||
case TYPE_READ_FROM:
|
||||
if(self->read_from.result) {
|
||||
Py_VISIT(self->read_from.result);
|
||||
}
|
||||
if(self->read_from.allocated_buffer) {
|
||||
Py_VISIT(self->read_from.allocated_buffer);
|
||||
}
|
||||
Py_VISIT(self->read_from.result);
|
||||
Py_VISIT(self->read_from.allocated_buffer);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue