Skip to content

Commit 88b9a17

Browse files
committed
fix linter error
1 parent d7f5810 commit 88b9a17

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/client/unittests/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ function runTestsImpl(arg?: vscode.Uri | TestsToRun | boolean | FlattenedTestFun
296296

297297
testResultDisplay = testResultDisplay ? testResultDisplay : new TestResultDisplay(outChannel, onDidChange);
298298

299-
let runPromise = testManager.runTest(runInfo, debug).catch(reason => {
299+
let ret = typeof runInfo === 'boolean' ? testManager.runTest(runInfo, debug) : testManager.runTest(runInfo, debug);
300+
let runPromise = ret.catch(reason => {
300301
if (reason !== CANCELLATION_REASON) {
301302
outChannel.appendLine('Error: ' + reason);
302303
}

0 commit comments

Comments
 (0)