From cc2bfffe079cb5b568b1b22b941db61357fcea7b Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Wed, 15 Feb 2017 19:08:13 -0800 Subject: [PATCH] If statements need elses. --- lib/worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/worker.js b/lib/worker.js index 49c3680..6547938 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -250,8 +250,9 @@ function updatePoolStats(poolType) { let cache; if (typeof(poolType) !== 'undefined') { cache = global.database.getCache(poolType + "_stats"); + } else { + cache = global.database.getCache("global_stats"); } - cache = global.database.getCache("global_stats"); async.series([ function (callback) { debug(threadName + "Checking Influx for last 10min avg for pool stats");