Formatting
This commit is contained in:
@@ -116,7 +116,6 @@ void DeviceManager::newDeviceAttachmentSpecInd(
|
|||||||
std::make_shared<DeviceAttachmentSpec>(*spec));
|
std::make_shared<DeviceAttachmentSpec>(*spec));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find or create the Device for this spec
|
|
||||||
bool deviceExists = false;
|
bool deviceExists = false;
|
||||||
std::shared_ptr<Device> device = nullptr;
|
std::shared_ptr<Device> device = nullptr;
|
||||||
for (const auto& existingDevice : devices)
|
for (const auto& existingDevice : devices)
|
||||||
@@ -149,7 +148,7 @@ void DeviceManager::newDeviceAttachmentSpecInd(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Consistency check: if DeviceRole exists, both spec and device must also exist
|
// If DeviceRole exists, both spec and device must also exist
|
||||||
if (deviceRoleExists)
|
if (deviceRoleExists)
|
||||||
{
|
{
|
||||||
if (!specExists || !deviceExists)
|
if (!specExists || !deviceExists)
|
||||||
|
|||||||
Reference in New Issue
Block a user