refactor: Simplify calls by not chaining

This commit is contained in:
Lars Toenning
2024-12-23 17:08:23 +01:00
parent a3b5595627
commit 12f9f399e0
17 changed files with 47 additions and 43 deletions

View File

@@ -106,11 +106,10 @@ namespace swift::core::context
else { m_validator->setCurrentSimulator(CSimulatorInfo::None, {}, {}); }
}
CContextSimulator *CContextSimulator::registerWithDBus(CDBusServer *server)
void CContextSimulator::registerWithDBus(CDBusServer *server)
{
if (!server || getMode() != CCoreFacadeConfig::LocalInDBusServer) { return this; }
if (!server || getMode() != CCoreFacadeConfig::LocalInDBusServer) { return; }
server->addObject(CContextSimulator::ObjectPath(), this);
return this;
}
bool CContextSimulator::isSimulatorPluginAvailable() const