Skip to content

Commit d743f0d

Browse files
committed
Lint after control flow changes
1 parent 7f672c8 commit d743f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/harness/fourslash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,10 +2362,10 @@ namespace FourSlash {
23622362
if (codeActions?.length !== 1) {
23632363
this.raiseError(`Expected one code action, got ${codeActions?.length ?? 0}`);
23642364
}
2365-
const codeAction = ts.first(codeActions!);
2365+
const codeAction = ts.first(codeActions);
23662366

23672367
if (codeAction.description !== options.description) {
2368-
this.raiseError(`Expected description to be:\n${options.description}\ngot:\n${codeActions![0].description}`);
2368+
this.raiseError(`Expected description to be:\n${options.description}\ngot:\n${codeActions[0].description}`);
23692369
}
23702370
this.applyChanges(codeAction.changes);
23712371

0 commit comments

Comments
 (0)