We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b199d94 commit a3a6784Copy full SHA for a3a6784
1 file changed
extensions/ql-vscode/src/variant-analysis/sarif-processing.ts
@@ -168,7 +168,7 @@ export function tryGetRule(
168
return undefined;
169
}
170
171
-function getFilePath(
+function tryGetFilePath(
172
physicalLocation: sarif.PhysicalLocation,
173
): string | undefined {
174
const filePath = physicalLocation.artifactLocation?.uri;
@@ -261,7 +261,7 @@ function getCodeFlows(
261
for (const threadFlowLocation of threadFlow.locations) {
262
const physicalLocation =
263
threadFlowLocation!.location!.physicalLocation!;
264
- const filePath = getFilePath(physicalLocation);
+ const filePath = tryGetFilePath(physicalLocation);
265
const codeSnippet = getCodeSnippet(
266
physicalLocation.contextRegion,
267
physicalLocation.region,
0 commit comments