Base: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:34:34 -05:00
parent 5df3dbae6f
commit b5c72abee4
10 changed files with 110 additions and 55 deletions

View File

@@ -511,7 +511,8 @@ void InterpreterSingleton::addType(PyTypeObject* Type,PyObject* Module, const ch
// NOTE: To finish the initialization of our own type objects we must
// call PyType_Ready, otherwise we run into a segmentation fault, later on.
// This function is responsible for adding inherited slots from a type's base class.
if (PyType_Ready(Type) < 0) return;
if (PyType_Ready(Type) < 0)
return;
union PyType_Object pyType = {Type};
PyModule_AddObject(Module, Name, pyType.o);
}