[Spreadsheet] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 01:49:41 +02:00
parent fc548a4b34
commit ce86b03e0a
5 changed files with 18 additions and 18 deletions

View File

@@ -123,7 +123,7 @@ PyObject* SheetPy::get(PyObject *args)
App::Property * prop = this->getSheetPtr()->getPropertyByName(address);
if (prop == nullptr) {
if (!prop) {
PyErr_Format(PyExc_ValueError,
"Invalid cell address or property: %s",address);
return nullptr;