diff --git a/src/git/GitRequestorProcess.cpp b/src/git/GitRequestorProcess.cpp index 83cab63c..1bfd3b3f 100644 --- a/src/git/GitRequestorProcess.cpp +++ b/src/git/GitRequestorProcess.cpp @@ -28,13 +28,8 @@ void GitRequestorProcess::onFinished(int, QProcess::ExitStatus) { bool ok = mTempFile && (mTempFile->isOpen() || (mTempFile->exists() && mTempFile->open())); - if (ok) - { - const auto ba = mTempFile->readAll(); - - if (ba.size() != 0 && !mCanceling) - emit procDataReady(ba); - } + if (ok && !mCanceling) + emit procDataReady(mTempFile->readAll()); deleteLater(); }