Skip to content

Commit e31ef66

Browse files
Avoid using "as ThreadFlow" to force the type system
1 parent be3efd7 commit e31ef66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/ql-vscode/src/variant-analysis/sarif-processing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function getCodeFlows(
238238

239239
if (result.codeFlows) {
240240
for (const codeFlow of result.codeFlows) {
241-
const threadFlows = [];
241+
const threadFlows: ThreadFlow[] = [];
242242

243243
for (const threadFlow of codeFlow.threadFlows) {
244244
for (const threadFlowLocation of threadFlow.locations) {
@@ -260,7 +260,7 @@ function getCodeFlows(
260260
},
261261
codeSnippet,
262262
highlightedRegion,
263-
} as ThreadFlow);
263+
});
264264
}
265265
}
266266

0 commit comments

Comments
 (0)