Skip to content

Commit 39977bd

Browse files
committed
fix(benchpress): add filter for when cloud config is not present
1 parent d0333e4 commit 39977bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/benchpress/src/benchmark.es6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ module.exports = {
2222

2323
function runBenchmark(config, workCallback) {
2424
var sampleId = nodeUuid.v1();
25-
var reporters = config.reporters.map(function(Class) {
25+
var reporters = config.reporters.filter(function(Class) {
26+
return !!Class;
27+
}).map(function(Class) {
2628
return new Class(sampleId, config);
2729
});
2830
var scriptMetricIndex = -1;

0 commit comments

Comments
 (0)