mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
Remove redundant checking before remove
This commit is contained in:
parent
ca776c3036
commit
621578353d
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…
Add table
Add a link
Reference in a new issue