Remove extra not null assertions (#202201)

* Remove extra not null assertions

With https://github.com/microsoft/TypeScript/pull/56908, TS should better preserve type refinements. To help test this out, I made a quick pass through our code to remove type assertions that are no longer needed

Most of these are not impacted by https://github.com/microsoft/TypeScript/pull/56908 but removing them helps TS test changes like this

Not adding an eslint rule for now as it requires whole program intellisense, which is too slow for commit hooks

* Fix merge
This commit is contained in:
Matt Bierner
2024-01-30 15:43:09 -08:00
committed by GitHub
parent adaf974eb2
commit 31fbc3dc94
177 changed files with 529 additions and 531 deletions
@@ -92,7 +92,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
const dto: IThreadFocusDto = {
kind: 'thread',
threadId: thread?.threadId,
sessionId: session!.getId(),
sessionId: session.getId(),
};
this._proxy.$acceptStackFrameFocus(dto);
}