chore: address codeql warnings (#201776)

This commit is contained in:
Robo
2024-01-05 18:03:05 +09:00
committed by GitHub
parent c563e053ba
commit cbbef4dc01
3 changed files with 5 additions and 3 deletions

View File

@@ -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');