Skip to content

Commit 646630e

Browse files
committed
Let NULL error flow through the return
1 parent 0e05aa4 commit 646630e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Modules/itertoolsmodule.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ batched_next(batchedobject *bo)
169169
if (i < bo->batch_size) {
170170
PyObject *short_list = PyList_GetSlice(result, 0, i);
171171
Py_SETREF(result, short_list);
172-
if (result == NULL) {
173-
return NULL;
174-
}
175172
}
176173
return result;
177174
}

0 commit comments

Comments
 (0)