Enable the @typescript-eslint/no-non-null-assertion eslint rule (#1899)

## Description:

Enable the `@typescript-eslint/no-non-null-assertion` eslint rule.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
This commit is contained in:
Scott Anderson
2025-08-23 13:50:41 -04:00
committed by GitHub
parent add81b9c04
commit f5316cc378
35 changed files with 188 additions and 127 deletions
+7 -3
View File
@@ -44,13 +44,17 @@ export class WorkerClient {
break;
case "initialized":
default:
if (message.id && this.messageHandlers.has(message.id)) {
const handler = this.messageHandlers.get(message.id)!;
default: {
if (message.id === undefined) return;
const handler = this.messageHandlers.get(message.id);
if (handler === undefined) return;
try {
handler(message);
} finally {
this.messageHandlers.delete(message.id);
}
break;
}
}
}