diff options
Diffstat (limited to 'lib/csapi/voip.cpp')
-rw-r--r-- | lib/csapi/voip.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/csapi/voip.cpp b/lib/csapi/voip.cpp index 8ecf92c6..0479b645 100644 --- a/lib/csapi/voip.cpp +++ b/lib/csapi/voip.cpp @@ -42,11 +42,7 @@ const QJsonObject& GetTurnServerJob::data() const BaseJob::Status GetTurnServerJob::parseJson(const QJsonDocument& data) { - auto json = data.object(); - if (!json.contains("data"_ls)) - return { JsonParseError, - "The key 'data' not found in the response" }; - d->data = fromJson<QJsonObject>(json.value("data"_ls)); + d->data = fromJson<QJsonObject>(data); return Success; } |