Skip to content

Commit 371a9a4

Browse files
committed
fix: nullish coalescing operator
1 parent 841e708 commit 371a9a4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/tabBarController.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,6 @@ export class TabBarController {
270270
return
271271
}
272272
this.#loadedChats = true
273-
274-
const dbSize = this.#chatHistoryDb.getDatabaseFileSize()
275-
276273
const openConversations = this.#chatHistoryDb.getOpenTabs()
277274
if (openConversations) {
278275
for (const conversation of openConversations) {
@@ -281,8 +278,8 @@ export class TabBarController {
281278
}
282279
}
283280
this.#telemetryService.emitLoadHistory({
284-
amazonqTimeToLoadHistory: this.#chatHistoryDb.getLoadTime() || -1,
285-
amazonQHistoryFileSize: dbSize || -1,
281+
amazonqTimeToLoadHistory: this.#chatHistoryDb.getLoadTime() ?? -1,
282+
amazonQHistoryFileSize: this.#chatHistoryDb.getDatabaseFileSize() ?? -1,
286283
openTabCount: openConversations.length,
287284
languageServerVersion: this.#features.runtime.serverInfo.version,
288285
})

0 commit comments

Comments
 (0)