If statements need elses.

This commit is contained in:
Alexander Blair 2017-02-15 19:08:13 -08:00
parent 603f56c743
commit cc2bfffe07

View file

@ -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");