From 39977bd3c21943cfd9c12c2f941ea94baabd3267 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Thu, 15 Jan 2015 10:50:35 -0800 Subject: [PATCH] fix(benchpress): add filter for when cloud config is not present --- tools/benchpress/src/benchmark.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/benchpress/src/benchmark.es6 b/tools/benchpress/src/benchmark.es6 index 1d62646f51..526eb9b995 100644 --- a/tools/benchpress/src/benchmark.es6 +++ b/tools/benchpress/src/benchmark.es6 @@ -22,7 +22,9 @@ module.exports = { function runBenchmark(config, workCallback) { var sampleId = nodeUuid.v1(); - var reporters = config.reporters.map(function(Class) { + var reporters = config.reporters.filter(function(Class) { + return !!Class; + }).map(function(Class) { return new Class(sampleId, config); }); var scriptMetricIndex = -1;