mirror of
https://github.com/CTCaer/hekate.git
synced 2025-08-03 06:38:47 +00:00
negating the if statement to reduce conditional context
This commit is contained in:
parent
21f21da85d
commit
31b92d65ce
1 changed files with 40 additions and 40 deletions
|
@ -1932,8 +1932,9 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run)
|
|||
|
||||
// Open directory.
|
||||
res = f_opendir(&dir, path);
|
||||
if (res == FR_OK)
|
||||
{
|
||||
if (res != FR_OK)
|
||||
return res;
|
||||
|
||||
dirLength = strlen(path);
|
||||
for (;;)
|
||||
{
|
||||
|
@ -1977,7 +1978,6 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run)
|
|||
}
|
||||
|
||||
f_closedir(&dir);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue