Fix: indents
All checks were successful
release-tag / release-image (push) Successful in 1m52s
release-tag / deploy (push) Successful in 46s

This commit is contained in:
2024-10-15 12:54:24 +00:00
parent 31cad1046e
commit d60bea2279
2 changed files with 10 additions and 10 deletions

View File

@@ -29,14 +29,14 @@ class Repo extends Page{
res.set({
'Content-Type': 'application/octet-stream'
});
await new Promise<void>((resolve, reject) => {
fileStream.pipe(res);
fileStream.on('end', () => {
console.log(`Response with ${file}`);
resolve();
});
});
} catch(err: unknown) {
await new Promise<void>((resolve, reject) => {
fileStream.pipe(res);
fileStream.on('end', () => {
console.log(`Response with ${file}`);
resolve();
});
});
} catch(err: unknown) {
if (err instanceof URIError) {
res.status(404).send(String(err));
return;