We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d86bd0c commit c15b40eCopy full SHA for c15b40e
src/harness/fourslash.ts
@@ -2362,10 +2362,10 @@ namespace FourSlash {
2362
if (codeActions?.length !== 1) {
2363
this.raiseError(`Expected one code action, got ${codeActions?.length ?? 0}`);
2364
}
2365
- const codeAction = ts.first(codeActions!);
+ const codeAction = ts.first(codeActions);
2366
2367
if (codeAction.description !== options.description) {
2368
- this.raiseError(`Expected description to be:\n${options.description}\ngot:\n${codeActions![0].description}`);
+ this.raiseError(`Expected description to be:\n${options.description}\ngot:\n${codeActions[0].description}`);
2369
2370
this.applyChanges(codeAction.changes);
2371
0 commit comments