[App] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 03:12:01 +02:00
parent b801e7151a
commit e69a920f18
12 changed files with 55 additions and 54 deletions

View File

@@ -168,7 +168,7 @@ PyObject *FeaturePythonPyT<FeaturePyT>::_getattr(const char *attr)
// Return the default dict
PyTypeObject *tp = this->ob_type;
// register type if needed
if (tp->tp_dict == nullptr) {
if (!tp->tp_dict) {
if (PyType_Ready(tp) < 0)
return nullptr;
}