diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-02 18:40:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-02 18:40:06 +0300 |
commit | 4176d6dd87e8388843f2c4a58fe93719650d0f4c (patch) | |
tree | bca2fc2efbd1c440770dfbc3d814b82cfd00c4dd /protocols/SkypeWeb/src/skype_polling.cpp | |
parent | 143bd800a6dce8e3c54266fea5af57319754e641 (diff) |
minor code cleaning
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_polling.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp index fc9ea70532..075b5085e8 100644 --- a/protocols/SkypeWeb/src/skype_polling.cpp +++ b/protocols/SkypeWeb/src/skype_polling.cpp @@ -69,12 +69,10 @@ void CSkypeProto::ParsePollData(const char *szData) debugLogA(__FUNCTION__);
JSONNode data = JSONNode::parse(szData);
- if (!data) return;
-
- const JSONNode &node = data["eventMessages"];
- if (!node) return;
+ if (!data)
+ return;
- for (auto &message : node) {
+ for (auto &message : data["eventMessages"]) {
const JSONNode &resType = message["resourceType"];
const JSONNode &resource = message["resource"];
|