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
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -163,9 +163,6 @@ bool Resource::enable(EnableAction action)
path += ".disabled";
path = FS::getUniqueResourceName(path);
}
if (QFileInfo::exists(path)) { // the path exists so just remove the file at path
return false;
}
if (!file.rename(path))
return false;