mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(toxme): Delete extra check
Result is checked in response "c" value
This commit is contained in:
parent
a146c43a1e
commit
d1b706a4b3
|
@ -47,13 +47,6 @@ QByteArray Toxme::makeJsonRequest(QString url, QString json, QNetworkReply::Netw
|
|||
qApp->processEvents();
|
||||
}
|
||||
|
||||
error = reply->error();
|
||||
if (error)
|
||||
{
|
||||
qWarning() << "makeJsonRequest: A network error occured:" << reply->errorString();
|
||||
return QByteArray();
|
||||
}
|
||||
|
||||
QByteArray result = reply->readAll();
|
||||
delete reply;
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue
Block a user