From 1a84dc9bcabbd212d1402d04f3f8a41021bdca8f Mon Sep 17 00:00:00 2001 From: Trial97 Date: Fri, 14 Jun 2024 22:47:42 +0300 Subject: [PATCH] no need for extra exist check Signed-off-by: Trial97 --- launcher/minecraft/mod/Resource.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/launcher/minecraft/mod/Resource.cpp b/launcher/minecraft/mod/Resource.cpp index 9228d5165..62871cbf2 100644 --- a/launcher/minecraft/mod/Resource.cpp +++ b/launcher/minecraft/mod/Resource.cpp @@ -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;