mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
build: merge double space in SHASUM validation logic (#29117)
This commit is contained in:
@@ -409,7 +409,7 @@ async function getShaSumMappingFromUrl (shaSumFileUrl, fileNamePrefix) {
|
||||
const response = await got(shaSumFileUrl);
|
||||
const raw = response.body;
|
||||
return raw.split('\n').map(line => line.trim()).filter(Boolean).reduce((map, line) => {
|
||||
const [sha, file] = line.split(' ');
|
||||
const [sha, file] = line.replace(' ', ' ').split(' ');
|
||||
map[file.slice(fileNamePrefix.length)] = sha;
|
||||
return map;
|
||||
}, {});
|
||||
|
||||
Reference in New Issue
Block a user