fix: Remove check empty file for edit tool

This commit is contained in:
Petr Mironychev
2025-11-03 18:06:51 +01:00
parent a2f3ae4f64
commit 6ff6901421
2 changed files with 2 additions and 9 deletions

View File

@ -701,14 +701,6 @@ bool ChangesManager::performFragmentReplacement(
bool isUndo)
{
QString currentContent = readFileContent(filePath);
if (currentContent.isNull()) {
if (errorMsg) {
*errorMsg = "Failed to read current file content";
}
LOG_MESSAGE(QString("Failed to read file for fragment replacement: %1").arg(filePath));
return false;
}
QString resultContent;
if (isAppendOperation) {