Skip to content

Commit

Permalink
better null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendy Hsu authored and Wendy Hsu committed May 24, 2022
1 parent ae210ba commit 56d9471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/utilities/fast-benchmarks/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/utilities/fast-benchmarks/scripts/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -245,7 +245,7 @@ async function generateBenchmarks(
};
}

if (methods.length > 0) {
if (methods) {
methods.forEach(method => {
const fullUrl = `${url}?method=${method}`;

Expand Down

0 comments on commit 56d9471

Please sign in to comment.