Skip to content

Commit 3f2eee9

Browse files
authored
Merge pull request #34 from dsp-testing/rneatherway/no-results
Correct off-by-one error
2 parents 95d6356 + ae54aac commit 3f2eee9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/combine-results.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/combine-results.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/combine-results.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function run(): Promise<void> {
5757
"utf-8"
5858
);
5959
const output = await getExecOutput("wc", ["-l", csvDest]); // TODO: preferably we would do this during results interpretation
60-
const results = parseInt(output.stdout.trim()) - 2;
60+
const results = parseInt(output.stdout.trim(), 10) - 1;
6161

6262
if (results > 0) {
6363
const md = path.join(response.downloadPath, "results.md");

0 commit comments

Comments
 (0)