aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/app.ts b/src/app.ts
index bedffa4..897896a 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -94,8 +94,7 @@ class App {
}
});
if (user === null) {
- next(new RequestError(404, 'user_not_found'));
- return;
+ return next(new RequestError(404, 'user_not_found'));
} else {
res.locals.user = user;
}
@@ -142,8 +141,7 @@ class App {
}
});
if (fileOrNull === null) {
- next();
- return;
+ return next();
} else {
file = fileOrNull;
}
@@ -159,8 +157,7 @@ class App {
}
});
if (parentFolder === null) {
- next();
- return;
+ return next();
}
res.locals.parentFolder = parentFolder;
const tFile: File | undefined = parentFolder.containedFiles.find(