Skip to content

Commit bbd4201

Browse files
committed
add ? to potential null string
1 parent f231507 commit bbd4201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function run() {
6464
}
6565

6666
startTime = new Date()
67-
output = execSync(command, {timeout, env, stdio: 'inherit'}).toString()
67+
output = execSync(command, {timeout, env, stdio: 'inherit'})?.toString()
6868
endTime = new Date()
6969

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

0 commit comments

Comments
 (0)