Skip to content

Commit bc4db19

Browse files
committed
remove unneeded null check
1 parent 354fcd6 commit bc4db19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/testing/testController/unittest/testDiscoveryAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class UnittestTestDiscoveryAdapter implements ITestDiscoveryAdapter {
201201
// if the child has testIds then this is a run request
202202
spawnOptions?.outputChannel?.append(MESSAGE_ON_TESTING_OUTPUT_MOVE);
203203

204-
if (code && code !== 0) {
204+
if (code !== 0) {
205205
// This occurs when we are running discovery
206206
traceError(
207207
`Subprocess exited unsuccessfully with exit code ${code} and signal ${signal} on workspace ${options.cwd}. Creating and sending error discovery payload \n`,

0 commit comments

Comments
 (0)