mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refactor: Simplify calls by not chaining
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user