mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
chore: address codeql warnings (#201776)
This commit is contained in:
@@ -45,6 +45,7 @@ function getElectronVersion(): Record<string, string> {
|
||||
}
|
||||
|
||||
function getSha(filename: fs.PathLike): string {
|
||||
// CodeQL [SM04514] Hash logic cannot be changed due to external dependency, also the code is only used during build.
|
||||
const hash = createHash('sha1');
|
||||
// Read file 1 MB at a time
|
||||
const fd = fs.openSync(filename, 'r');
|
||||
|
||||
Reference in New Issue
Block a user