mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 18:26:11 +03:00
Remove redundant checking before remove
This commit is contained in:
parent
70c4eb44fd
commit
3971a12f0e
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue