Skip to content

Commit

Permalink
Merge pull request #16 from education/fix-potential-null-issue
Browse files Browse the repository at this point in the history
add `?` to potential null string
  • Loading branch information
ashishkeshan authored Mar 27, 2024
2 parents 29a4f45 + bbd4201 commit 4993a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function run() {
}

startTime = new Date()
output = execSync(command, {timeout, env, stdio: 'inherit'}).toString()
output = execSync(command, {timeout, env, stdio: 'inherit'})?.toString()
endTime = new Date()

result = generateResult('pass', testName, command, output, endTime - startTime, maxScore)
Expand Down

0 comments on commit 4993a16

Please sign in to comment.