add void to avoid warnings

This commit is contained in:
Nate 2024-10-20 22:29:49 -07:00
parent fb2e23eebf
commit a8a851411c
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ export class TeamAnalytics {
static extensionVersion: string | undefined = undefined;
static async capture(event: string, properties: { [key: string]: any }) {
TeamAnalytics.provider?.capture(event, {
void TeamAnalytics.provider?.capture(event, {
...properties,
os: TeamAnalytics.os,
extensionVersion: TeamAnalytics.extensionVersion,

View file

@ -22,7 +22,7 @@ export default class ContinueProxyAnalyticsProvider
`proxy/analytics/${this.controlPlaneProxyInfo?.workspaceId}/capture`,
this.controlPlaneProxyInfo?.controlPlaneProxyUrl,
).toString();
fetch(url, {
void fetch(url, {
method: "POST",
body: JSON.stringify({
event,

View file

@ -31,7 +31,7 @@ export class Telemetry {
});
if (sendToTeam) {
TeamAnalytics.capture(event, properties);
void TeamAnalytics.capture(event, properties);
}
} catch (e) {
console.error(`Failed to capture event: ${e}`);