fix: PVS-Studio V523
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
faa1635014
commit
4211275c11
@ -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…
x
Reference in New Issue
Block a user