summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"];