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>
This commit is contained in:
Dan Adler 2024-06-24 13:35:28 -07:00 committed by GitHub
parent e8742bcf9c
commit 5413fd1fd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,7 @@ export class TelemetryEmitter {
}
try {
sourcegraph.logTelemetryEvent(`codeintel.${action + xrepo ? '.xrepo' : ''}`, {
sourcegraph.logTelemetryEvent(`codeintel.${action + (xrepo ? '.xrepo' : '')}`, {
...args,
durationMs: this.elapsed(),
languageId: this.languageID,