summaryrefslogtreecommitdiffstats
path: root/node.d
diff options
context:
space:
mode:
authorBrainDoctor <github.account@chrigel.net>2017-07-08 11:42:56 +0200
committerBrainDoctor <github.account@chrigel.net>2017-07-08 11:42:56 +0200
commit9a146d8d65936c6168dac486bb0ef1ac8fb76d75 (patch)
tree71370083a3d719684a6f28f20b7fdd6e8c07b9cf /node.d
parentad9ed133c4e6af1c96f610c9ac84f4df2f1dfafe (diff)
Minor improvement.
Diffstat (limited to 'node.d')
-rw-r--r--node.d/fronius.node.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/node.d/fronius.node.js b/node.d/fronius.node.js
index a02a4af31d..240fcc6c8d 100644
--- a/node.d/fronius.node.js
+++ b/node.d/fronius.node.js
@@ -260,8 +260,7 @@ var fronius = {
if (fronius.isUndefined(json.Body)) return false;
if (fronius.isUndefined(json.Body.Data)) return false;
if (fronius.isUndefined(json.Body.Data.Site)) return false;
- if (fronius.isUndefined(json.Body.Data.Inverters)) return false;
- return true;
+ return fronius.isDefined(json.Body.Data.Inverters);
},
// module.serviceExecute()