summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-02 18:40:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-02 18:40:06 +0300
commit4176d6dd87e8388843f2c4a58fe93719650d0f4c (patch)
treebca2fc2efbd1c440770dfbc3d814b82cfd00c4dd /protocols/SkypeWeb/src/skype_polling.cpp
parent143bd800a6dce8e3c54266fea5af57319754e641 (diff)
minor code cleaning
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp8
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"];