diff --git a/packages/utilities/fast-benchmarks/scripts/index.js b/packages/utilities/fast-benchmarks/scripts/index.js index 3bf2bc63f1c..b95ddc71769 100644 --- a/packages/utilities/fast-benchmarks/scripts/index.js +++ b/packages/utilities/fast-benchmarks/scripts/index.js @@ -86,7 +86,6 @@ async function runBenchmark(configPaths, pathNames) { const configPath = configPaths[i]; const pathName = pathNames[i]; - console.log("path name", pathName); const res = new Promise((resolve, reject) => { const args = [ "tach", diff --git a/packages/utilities/fast-benchmarks/scripts/template.js b/packages/utilities/fast-benchmarks/scripts/template.js index 99d75625f45..09652b11855 100644 --- a/packages/utilities/fast-benchmarks/scripts/template.js +++ b/packages/utilities/fast-benchmarks/scripts/template.js @@ -84,7 +84,7 @@ async function generateHtmlTemplates( const operationProps = { names: [], htmlPaths: [] }; // handle if specific operations are passed in - if (operations?.length > 0) { + if (operations) { const fileNames = files.map(f => getTestName(f)); const match = operations.some(f => fileNames.includes(f)); if (!match) { @@ -245,7 +245,7 @@ async function generateBenchmarks( }; } - if (methods.length > 0) { + if (methods) { methods.forEach(method => { const fullUrl = `${url}?method=${method}`;