Bug fixed: missing awaits on fs.write
gitea/docker-discover/pipeline/head This commit looks good
Details
gitea/docker-discover/pipeline/head This commit looks good
Details
This commit is contained in:
parent
0e54ff0eaa
commit
a9f157bff1
8
index.js
8
index.js
|
@ -307,12 +307,12 @@ async function updateProxy(firstRun) {
|
||||||
);
|
);
|
||||||
|
|
||||||
const fd = await fs.open(`${mapDir}/${file}.map`, 'w+');
|
const fd = await fs.open(`${mapDir}/${file}.map`, 'w+');
|
||||||
files[file].forEach(map => {
|
for (const map of files[file]) {
|
||||||
if (Array.isArray(map))
|
if (Array.isArray(map))
|
||||||
fs.write(fd, `${map[0]} ${map[1]}\n`);
|
await fs.write(fd, `${map[0]} ${map[1]}\n`);
|
||||||
else
|
else
|
||||||
fs.write(fd, `${map}\n`);
|
await fs.write(fd, `${map}\n`);
|
||||||
});
|
}
|
||||||
await fs.close(fd);
|
await fs.close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue