From d1b706a4b3926fc3bd1f7af115358cf171080021 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Sat, 16 Apr 2016 01:32:37 +0300 Subject: [PATCH] fix(toxme): Delete extra check Result is checked in response "c" value --- src/net/toxme.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/net/toxme.cpp b/src/net/toxme.cpp index 1d0b0ff95..9a7e3d567 100644 --- a/src/net/toxme.cpp +++ b/src/net/toxme.cpp @@ -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;