aboutsummaryrefslogtreecommitdiff
path: root/src/FileRouter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileRouter.ts')
-rw-r--r--src/FileRouter.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts
index e890241..f4d2fdc 100644
--- a/src/FileRouter.ts
+++ b/src/FileRouter.ts
@@ -716,11 +716,8 @@ export class FileRouter {
uuid: fileId
}
});
- if (file == null) {
- return next(new RequestError(404, 'file_not_found'));
- } else {
- res.locals.file = file;
- }
+
+ res.locals.file = file;
next();
}
);