Fix: indents
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user