Skip to content

Commit bfe78eb

Browse files
Use string index notation instead of as any
1 parent c906e76 commit bfe78eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/ql-vscode/src/common/vscode/telemetry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ export class ExtensionTelemetryListener
128128
);
129129
this.push(this.reporter);
130130

131-
const client = (this.reporter as any).appInsightsClient as TelemetryClient;
131+
// The appInsightsClient field is private but we want to access it anyway
132+
const client = this.reporter["appInsightsClient"] as TelemetryClient;
132133
if (client) {
133134
// add a telemetry processor to delete unwanted properties
134135
client.addTelemetryProcessor((envelope: any) => {

0 commit comments

Comments
 (0)