mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix: PVS-Studio V523
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
faa1635014
commit
4211275c11
1 changed files with 2 additions and 2 deletions
|
|
@ -134,9 +134,9 @@ fs::path ContentPack::findPack(
|
|||
}
|
||||
folder = paths->getResources() / fs::path("content") / fs::path(name);
|
||||
if (fs::is_directory(folder)) {
|
||||
return folder;
|
||||
return folder; //-V523
|
||||
}
|
||||
return folder;
|
||||
return folder; // FIXME: V523 The 'then' statement is equivalent to the subsequent code fragment //-V523
|
||||
}
|
||||
|
||||
ContentPackRuntime::ContentPackRuntime(ContentPack info, scriptenv env)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue