mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 12:55:44 +02:00
fix: add missing return
This commit is contained in:
@@ -154,6 +154,7 @@ async function expose(exposedField, method, field, req, res, next) {
|
||||
const value = await method(String(req.params[field]).toLowerCase());
|
||||
if (!value) {
|
||||
next('route');
|
||||
return;
|
||||
}
|
||||
|
||||
res.locals[exposedField] = value;
|
||||
|
||||
Reference in New Issue
Block a user