Skip to content

Commit a3a6784

Browse files
Rename to teyGetFilePath to fit other methods
1 parent b199d94 commit a3a6784

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
@@ -168,7 +168,7 @@ export function tryGetRule(
168168
return undefined;
169169
}
170170

171-
function getFilePath(
171+
function tryGetFilePath(
172172
physicalLocation: sarif.PhysicalLocation,
173173
): string | undefined {
174174
const filePath = physicalLocation.artifactLocation?.uri;
@@ -261,7 +261,7 @@ function getCodeFlows(
261261
for (const threadFlowLocation of threadFlow.locations) {
262262
const physicalLocation =
263263
threadFlowLocation!.location!.physicalLocation!;
264-
const filePath = getFilePath(physicalLocation);
264+
const filePath = tryGetFilePath(physicalLocation);
265265
const codeSnippet = getCodeSnippet(
266266
physicalLocation.contextRegion,
267267
physicalLocation.region,

0 commit comments

Comments
 (0)