Mod: remove some unnecessary nullptr checks

This commit is contained in:
Uwe
2022-07-18 12:58:12 +02:00
parent a5eb40a9a6
commit 88a06f8f10
17 changed files with 37 additions and 37 deletions

View File

@@ -79,14 +79,14 @@ int MeshPy::PyInit(PyObject* args, PyObject*)
}
else if (PyList_Check(pcObj)) {
PyObject* ret = addFacets(args);
bool ok = (ret!=nullptr);
bool ok = (ret != nullptr);
Py_XDECREF(ret);
if (!ok)
return -1;
}
else if (PyTuple_Check(pcObj)) {
PyObject* ret = addFacets(args);
bool ok = (ret!=nullptr);
bool ok = (ret != nullptr);
Py_XDECREF(ret);
if (!ok)
return -1;