Skip to content

Commit b41ca85

Browse files
committed
requested changes
1 parent db66626 commit b41ca85

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Objects/bytearrayobject.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,15 +2913,11 @@ bytearrayiter_reduce(PyObject *self, PyObject *Py_UNUSED(ignored))
29132913
* call must be before access of iterator pointers.
29142914
* see issue #101765 */
29152915
bytesiterobject *it = _bytesiterobject_CAST(self);
2916-
PyObject *ret = NULL;
29172916
Py_ssize_t index = FT_ATOMIC_LOAD_SSIZE_RELAXED(it->it_index);
29182917
if (index >= 0) {
2919-
ret = Py_BuildValue("N(O)n", iter, it->it_seq, index);
2918+
return Py_BuildValue("N(O)n", iter, it->it_seq, index);
29202919
}
2921-
if (ret == NULL) {
2922-
ret = Py_BuildValue("N(())", iter);
2923-
}
2924-
return ret;
2920+
return Py_BuildValue("N(())", iter);
29252921
}
29262922

29272923
static PyObject *

0 commit comments

Comments
 (0)