no need for extra exist check

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2024-06-14 22:47:42 +03:00
parent b872f88617
commit 1a84dc9bca
-3
View File
@@ -163,9 +163,6 @@ bool Resource::enable(EnableAction action)
path += ".disabled"; path += ".disabled";
path = FS::getUniqueResourceName(path); path = FS::getUniqueResourceName(path);
} }
if (QFileInfo::exists(path)) { // the path exists so just remove the file at path
return false;
}
if (!file.rename(path)) if (!file.rename(path))
return false; return false;