add void to avoid warnings
This commit is contained in:
parent
fb2e23eebf
commit
a8a851411c
3 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue