Minor code clean-up

This commit is contained in:
rh101 2021-04-26 10:45:55 +10:00
parent 20a0747c8d
commit 17e1cc1d71
1 changed files with 1 additions and 2 deletions

View File

@ -820,8 +820,7 @@ void DownloaderCURL::_onDownloadFinished(TaskWrapper&& wrapper, int checkState)
if (checkState & kCheckSumStateSucceed) // No need download if (checkState & kCheckSumStateSucceed) // No need download
{ {
FileStream* fsOrigin = auto* fsOrigin = pFileUtils->openFileStream(coTask._fileName, FileStream::Mode::READ);
FileUtils::getInstance()->openFileStream(coTask._fileName, FileStream::Mode::READ);
if (fsOrigin) { if (fsOrigin) {
fsOrigin->seek(0, SEEK_END); fsOrigin->seek(0, SEEK_END);
task.progressInfo.totalBytesExpected = fsOrigin->tell(); task.progressInfo.totalBytesExpected = fsOrigin->tell();