💄
This commit is contained in:
parent
5335a721fa
commit
8714526077
|
@ -30,11 +30,10 @@ export class VSCodeTelemetryReporter implements TelemetryReporter {
|
|||
private readonly clientVersionDelegate: () => string
|
||||
) { }
|
||||
|
||||
public logTelemetry(eventName: string, properties?: { [prop: string]: string }) {
|
||||
public logTelemetry(eventName: string, properties: { [prop: string]: string } = {}) {
|
||||
const reporter = this.reporter;
|
||||
if (reporter) {
|
||||
if (!properties) {
|
||||
properties = {};
|
||||
if (!reporter) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* __GDPR__FRAGMENT__
|
||||
|
@ -46,7 +45,6 @@ export class VSCodeTelemetryReporter implements TelemetryReporter {
|
|||
|
||||
reporter.sendTelemetryEvent(eventName, properties);
|
||||
}
|
||||
}
|
||||
|
||||
public dispose() {
|
||||
if (this._reporter) {
|
||||
|
|
Loading…
Reference in a new issue