Skip to content

Commit 15f19ac

Browse files
henrymercerCopilot
andauthored
Improve docstring
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f7ab654 commit 15f19ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/upload-lib.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ export function readSarifFile(sarifFilePath: string): SarifFile {
444444
}
445445
}
446446

447-
// Validates that the given file path refers to a valid SARIF file.
448-
// Throws an error if the file is invalid.
447+
// Validates the given SARIF object and throws an error if the SARIF object is invalid.
448+
// The file path is only used in error messages to improve clarity.
449449
export function validateSarifFileSchema(
450450
sarif: SarifFile,
451451
sarifFilePath: string,

0 commit comments

Comments
 (0)