Avoid using "as ThreadFlow" to force the type system

This commit is contained in:
Robert
2023-04-24 17:32:21 +01:00
parent be3efd79a8
commit e31ef662f8

View File

@@ -238,7 +238,7 @@ function getCodeFlows(
if (result.codeFlows) {
for (const codeFlow of result.codeFlows) {
const threadFlows = [];
const threadFlows: ThreadFlow[] = [];
for (const threadFlow of codeFlow.threadFlows) {
for (const threadFlowLocation of threadFlow.locations) {
@@ -260,7 +260,7 @@ function getCodeFlows(
},
codeSnippet,
highlightedRegion,
} as ThreadFlow);
});
}
}