Remove redundant check for isNull()

This commit is contained in:
Jonas Kvinge
2020-10-02 19:27:47 +02:00
parent 8f42df209a
commit 287f0a3739
14 changed files with 20 additions and 19 deletions

View File

@@ -39,7 +39,7 @@ QJsonObject ScrobblerService::ExtractJsonObj(const QByteArray &data, const bool
Error("Reply from server missing Json data.", data);
return QJsonObject();
}
if (json_doc.isNull() || json_doc.isEmpty()) {
if (json_doc.isEmpty()) {
Error("Received empty Json document.", json_doc);
return QJsonObject();
}