Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Keil <[email protected]>
  • Loading branch information
nazarhussain and matthewkeil authored Jan 9, 2025
1 parent 9aa87c9 commit 3ee29e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export async function compare({dirs}: {dirs: string[]}): Promise<void> {
try {
const history = await provider.readHistory();
if (history.length === 0) {
throw Error(`Benchmark directory ${dirPath} does not contain nay history.`);
throw Error(`Benchmark directory ${dirPath} does not contain history.`);
}
benchmarks.push(history[0]);
} catch {
throw Error(`Benchmark directory ${dirPath} does not contain nay history. Or not a valid benchmark.`);
throw Error(`Benchmark directory ${dirPath} does not contain history, nor a valid benchmark.`);
}
}

Expand Down

0 comments on commit 3ee29e4

Please sign in to comment.