File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export function getErrorMessage(e: unknown): string {
69
69
}
70
70
71
71
export function getErrorStack ( e : unknown ) : string {
72
- return e instanceof Error ? e . stack ?? "" : "" ;
72
+ return e instanceof Error ? ( e . stack ?? "" ) : "" ;
73
73
}
74
74
75
75
export function asError ( e : unknown ) : Error {
Original file line number Diff line number Diff line change @@ -138,12 +138,12 @@ export class HistoryTreeDataProvider
138
138
139
139
const resultCount1 =
140
140
h1 . t === "local"
141
- ? h1 . completedQuery ?. resultCount ?? - 1
142
- : h1 . resultCount ?? - 1 ;
141
+ ? ( h1 . completedQuery ?. resultCount ?? - 1 )
142
+ : ( h1 . resultCount ?? - 1 ) ;
143
143
const resultCount2 =
144
144
h2 . t === "local"
145
- ? h2 . completedQuery ?. resultCount ?? - 1
146
- : h2 . resultCount ?? - 1 ;
145
+ ? ( h2 . completedQuery ?. resultCount ?? - 1 )
146
+ : ( h2 . resultCount ?? - 1 ) ;
147
147
148
148
switch ( this . sortOrder ) {
149
149
case SortOrder . NameAsc :
You can’t perform that action at this time.
0 commit comments