mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-02 11:54:01 +01:00
If statements need elses.
This commit is contained in:
+2
-1
@@ -250,8 +250,9 @@ function updatePoolStats(poolType) {
|
|||||||
let cache;
|
let cache;
|
||||||
if (typeof(poolType) !== 'undefined') {
|
if (typeof(poolType) !== 'undefined') {
|
||||||
cache = global.database.getCache(poolType + "_stats");
|
cache = global.database.getCache(poolType + "_stats");
|
||||||
|
} else {
|
||||||
|
cache = global.database.getCache("global_stats");
|
||||||
}
|
}
|
||||||
cache = global.database.getCache("global_stats");
|
|
||||||
async.series([
|
async.series([
|
||||||
function (callback) {
|
function (callback) {
|
||||||
debug(threadName + "Checking Influx for last 10min avg for pool stats");
|
debug(threadName + "Checking Influx for last 10min avg for pool stats");
|
||||||
|
|||||||
Reference in New Issue
Block a user