mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Remove redundant checking before remove
This commit is contained in:
@@ -275,8 +275,7 @@ void CustomStorage::handleCompleteFiles(const QString &savePath)
|
||||
QFile completeFile {saveDir.absoluteFilePath(completeFilePath)};
|
||||
if (completeFile.exists()) {
|
||||
QFile incompleteFile {saveDir.absoluteFilePath(filePath)};
|
||||
if (incompleteFile.exists())
|
||||
incompleteFile.remove();
|
||||
incompleteFile.remove();
|
||||
completeFile.rename(incompleteFile.fileName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user