summaryrefslogtreecommitdiffhomepage
path: root/Private/Source/NewFS+FileManager.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-29 20:20:57 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-29 20:20:57 +0200
commit77423c4fa55a060c5cf710bbe5c4de02fce43e97 (patch)
tree9fd6308619a7ee4deca80c05d44fea2566d99da4 /Private/Source/NewFS+FileManager.cxx
parenta21859d722597e4eb1216a4a48d08d8f2659b514 (diff)
MHR-18: Fixing last bugs...
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/NewFS+FileManager.cxx')
-rw-r--r--Private/Source/NewFS+FileManager.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/Private/Source/NewFS+FileManager.cxx b/Private/Source/NewFS+FileManager.cxx
index 910ec841..27beb9e0 100644
--- a/Private/Source/NewFS+FileManager.cxx
+++ b/Private/Source/NewFS+FileManager.cxx
@@ -20,9 +20,9 @@ NewFilesystemManager::NewFilesystemManager() {
}
NewFilesystemManager::~NewFilesystemManager() {
- if (fImpl) {
- delete fImpl;
- }
+ if (fImpl) {
+ delete fImpl;
+ }
}
/// @brief Removes a node from the filesystem.
@@ -31,10 +31,7 @@ NewFilesystemManager::~NewFilesystemManager() {
bool NewFilesystemManager::Remove(const char* fileName) {
if (fileName == nullptr || *fileName == 0) return false;
- if (auto catalog = fImpl->GetCatalog(fileName); catalog)
- return fImpl->RemoveCatalog(catalog);
-
- return false;
+ return fImpl->RemoveCatalog(fileName);
}
/// @brief Creates a node with the specified.