mirror of
https://github.com/nitanmarcel/isodrive.git
synced 2026-03-13 04:17:24 +00:00
Conditionals should have curly brackets if parent or child ones have them
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user