Base: Remove redundant 'else' and return Py::None() instead of Py::Object() to make it explicit that Python's 'None' is meant

This commit is contained in:
wmayer
2022-12-05 12:51:38 +01:00
parent 69aba3abe1
commit 60ae885471

View File

@@ -330,8 +330,8 @@ Py::Object ParameterGrpPy::getManager(const Py::Tuple& args)
// increment the ref count
return Py::asObject(pcParamGrp);
}
else
return Py::Object();
return Py::None();
}
Py::Object ParameterGrpPy::getParent(const Py::Tuple& args)
@@ -347,8 +347,8 @@ Py::Object ParameterGrpPy::getParent(const Py::Tuple& args)
// increment the ref count
return Py::asObject(pcParamGrp);
}
else
return Py::Object();
return Py::None();
}
Py::Object ParameterGrpPy::getGroupName(const Py::Tuple& args)