Skip to content

Commit b61bddb

Browse files
committed
address review: revert unrelated change
1 parent c71be45 commit b61bddb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/_struct.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,8 @@ static int
17941794
Struct___init___impl(PyStructObject *self, PyObject *format)
17951795
/*[clinic end generated code: output=b8e80862444e92d0 input=192a4575a3dde802]*/
17961796
{
1797+
int ret = 0;
1798+
17971799
if (PyUnicode_Check(format)) {
17981800
format = PyUnicode_AsASCIIString(format);
17991801
if (format == NULL)
@@ -1814,10 +1816,8 @@ Struct___init___impl(PyStructObject *self, PyObject *format)
18141816

18151817
Py_SETREF(self->s_format, format);
18161818

1817-
if (prepare_s(self)) {
1818-
return -1;
1819-
}
1820-
return 0;
1819+
ret = prepare_s(self);
1820+
return ret;
18211821
}
18221822

18231823
static int

0 commit comments

Comments
 (0)