Minor: move a comment closer to the real code mentioned in the comment

This commit is contained in:
Dmytro Maslenko
2025-07-25 20:21:07 -07:00
committed by Alejandro Martinez
parent 48c6717319
commit 9d7b07bf94
2 changed files with 3 additions and 4 deletions

View File

@@ -131,10 +131,10 @@ CyclingAnalytics::readdir(QString path, QStringList &errors, QDateTime, QDateTim
loop.exec();
QTimer::singleShot(30000,&loop, SLOT(quit())); // timeout after 30 seconds
// if successful, lets unpack
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str());
// if successful, lets unpack
if (reply->error() == 0) {
// get the data

View File

@@ -199,12 +199,11 @@ Xert::readdir(QString path, QStringList &errors, QDateTime from, QDateTime to)
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
loop.exec();
// if successful, lets unpack
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str());
// if successful, lets unpack
if (reply->error() == 0) {
// get the data
QByteArray r = reply->readAll();
@@ -308,10 +307,10 @@ Xert::readActivityDetail(QString path, bool withSessionData)
connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
loop.exec();
// if successful, lets unpack
int statusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
printd("fetch response: %d: %s\n", reply->error(), reply->errorString().toStdString().c_str());
// if successful, lets unpack
if (reply->error() == 0) {
// get the data