From 10ca2874b7afbd9e0957bebc526f986ab2da4d9a Mon Sep 17 00:00:00 2001 From: smittytone Date: Wed, 27 Feb 2019 09:00:26 +0000 Subject: [PATCH] Add missing variable --- DarkSky.agent.lib.nut | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DarkSky.agent.lib.nut b/DarkSky.agent.lib.nut index 5b03946..b287eed 100644 --- a/DarkSky.agent.lib.nut +++ b/DarkSky.agent.lib.nut @@ -219,7 +219,6 @@ class DarkSky { * */ function _sendRequest(req, cb = null) { - local err, data, count; if (cb != null) { req.sendasync(function(resp) { local returnTable = _processResponse(resp); @@ -250,7 +249,7 @@ class DarkSky { * */ function _processResponse(resp) { - local err, data; + local err, data, count; if (resp.statuscode != 200) { err = format("Unable to retrieve forecast data (code: %i)", resp.statuscode); } else {