Skip to content

Commit

Permalink
Refactored mathods for good readability
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed May 22, 2024
1 parent 4471cb3 commit ac04385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function processAndDisplayBuildSummary() {

try {
const runnerTemp = process.env.RUNNER_TEMP;
const filePath = join(runnerTemp, `buildSummary_${runId}.json`);
const filePath: String = join(runnerTemp, `buildSummary_${runId}.json`);

Check failure on line 72 in src/buildSummary.ts

View workflow job for this annotation

GitHub Actions / Build and Test

Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
const data = await readJsonFile(filePath);

Check failure on line 73 in src/buildSummary.ts

View workflow job for this annotation

GitHub Actions / Build and Test

Argument of type 'String' is not assignable to parameter of type 'string'.
const taskSummaryTableRows = getBuildSummaryTable(data);
writeSummary(taskSummaryTableRows);
Expand Down

0 comments on commit ac04385

Please sign in to comment.