From 011f73fedbcf16319586964e8ed59f3f88de063e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 30 Nov 2024 00:37:15 +0100 Subject: [PATCH] Remove unnecessary check when creating subdir chains --- Common/File/FileUtil.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Common/File/FileUtil.cpp b/Common/File/FileUtil.cpp index 74e490dc1a..74a0774072 100644 --- a/Common/File/FileUtil.cpp +++ b/Common/File/FileUtil.cpp @@ -665,9 +665,7 @@ bool CreateFullPath(const Path &path) { Path curPath = root; for (auto part : parts) { curPath /= part; - if (!File::Exists(curPath)) { - File::CreateDir(curPath); - } + File::CreateDir(curPath); } return true;