Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 5413fd1

Browse files
authored
fix(analytics): fix broken v1 codeintel event logging (#63449)
Codeintel v1 telemetry/event logging was broken in https://github.com/sourcegraph/sourcegraph/pull/62586 due to the lack of parens around a ternary operator. This simply fixes that issue. ## Test plan CI ## Changelog Co-authored-by: Dan Adler <5589410+dadlerj@users.noreply.github.com>
1 parent e8742bc commit 5413fd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/shared/src/codeintel/legacy-extensions/telemetry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class TelemetryEmitter {
6363
}
6464

6565
try {
66-
sourcegraph.logTelemetryEvent(`codeintel.${action + xrepo ? '.xrepo' : ''}`, {
66+
sourcegraph.logTelemetryEvent(`codeintel.${action + (xrepo ? '.xrepo' : '')}`, {
6767
...args,
6868
durationMs: this.elapsed(),
6969
languageId: this.languageID,

0 commit comments

Comments
 (0)