Conditionals should have curly brackets if parent or child ones have them

This commit is contained in:
Marcel Alexandru Nitan
2023-06-02 08:46:08 +00:00
parent 4034ffebdc
commit a1a03c57f2

View File

@@ -26,6 +26,7 @@ char* get_gadget_root()
dp = opendir(usbGadgetRoot);
if (dp != nullptr)
{
while ((entry = readdir(dp)))
{
if (entry->d_name[0] != '.')
@@ -39,6 +40,7 @@ char* get_gadget_root()
}
}
}
}
return gadgetRoot;
}
@@ -59,6 +61,7 @@ char* get_config_root()
dp = opendir(usbConfigRoot);
if (dp != nullptr)
{
while ((entry = readdir(dp)))
{
if (entry->d_name[0] != '.')
@@ -67,6 +70,7 @@ char* get_config_root()
break;
}
}
}
return configRoot;
}