Skip to content

Commit f9538a2

Browse files
Run: npm run format
1 parent 14101bb commit f9538a2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extensions/ql-vscode/src/common/helpers-pure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function getErrorMessage(e: unknown): string {
6969
}
7070

7171
export function getErrorStack(e: unknown): string {
72-
return e instanceof Error ? e.stack ?? "" : "";
72+
return e instanceof Error ? (e.stack ?? "") : "";
7373
}
7474

7575
export function asError(e: unknown): Error {

extensions/ql-vscode/src/query-history/history-tree-data-provider.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ export class HistoryTreeDataProvider
138138

139139
const resultCount1 =
140140
h1.t === "local"
141-
? h1.completedQuery?.resultCount ?? -1
142-
: h1.resultCount ?? -1;
141+
? (h1.completedQuery?.resultCount ?? -1)
142+
: (h1.resultCount ?? -1);
143143
const resultCount2 =
144144
h2.t === "local"
145-
? h2.completedQuery?.resultCount ?? -1
146-
: h2.resultCount ?? -1;
145+
? (h2.completedQuery?.resultCount ?? -1)
146+
: (h2.resultCount ?? -1);
147147

148148
switch (this.sortOrder) {
149149
case SortOrder.NameAsc:

0 commit comments

Comments
 (0)