fix(benchpress): add filter for when cloud config is not present

This commit is contained in:
Jeff Cross 2015-01-15 10:50:35 -08:00
parent d0333e4376
commit 39977bd3c2
1 changed files with 3 additions and 1 deletions

View File

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