Fix indentation

This commit is contained in:
2025-01-17 12:07:29 -04:00
parent 36592293dd
commit 76141e3a92
+7 -5
View File
@@ -16,7 +16,8 @@ namespace device {
std::string DeviceManager::readDeviceFile(const std::string& filename)
{
std::ifstream file(filename);
if (!file.is_open()) {
if (!file.is_open())
{
throw std::runtime_error(
std::string(__func__) + ": Couldn't open deviceSpec file: "
+ filename);
@@ -47,18 +48,19 @@ void DeviceManager::collateAllDeviceSpecs(void)
void DeviceManager::parseAllDeviceSpecs(void)
{
std::unique_ptr<FILE, decltype(&fclose)> input(
fmemopen((void*)allDeviceSpecs.c_str(),
allDeviceSpecs.size(), "r"),
fmemopen((void*)allDeviceSpecs.c_str(), allDeviceSpecs.size(), "r"),
&fclose);
if (!input) {
if (!input)
{
throw std::runtime_error(
std::string(__func__) + ": Failed to fmemopen() a FILE* for "
"parsing device specs");
}
deviceSpeclin = input.get();
if (deviceSpecpparse()) {
if (deviceSpecpparse())
{
throw std::runtime_error(
std::string(__func__) + ": Failed to parse device specs. "
"Check specs for errors");