From 4211275c11f49c5f5a694623538aeae653628fe7 Mon Sep 17 00:00:00 2001 From: Vyacheslav Ivanov Date: Sat, 3 Aug 2024 23:05:28 +0300 Subject: [PATCH] fix: PVS-Studio V523 Signed-off-by: Vyacheslav Ivanov --- src/content/ContentPack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/ContentPack.cpp b/src/content/ContentPack.cpp index 8f6ef074..ae65646e 100644 --- a/src/content/ContentPack.cpp +++ b/src/content/ContentPack.cpp @@ -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)