Skip to content

Commit

Permalink
fix: remove unneeded assignment, as req and locals will not likely ev…
Browse files Browse the repository at this point in the history
…er be completely reassigned
  • Loading branch information
julianlam committed Jan 13, 2023
1 parent 28613e7 commit a69bc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ middleware.buildHeader = helpers.try(async (req, res, next) => {
await require('./index').applyCSRFasync(req, res);
}

({ req, locals: res.locals } = await plugins.hooks.fire('filter:middleware.buildHeader', { req: req, locals: res.locals }));
await plugins.hooks.fire('filter:middleware.buildHeader', { req: req, locals: res.locals });
const [config, canLoginIfBanned] = await Promise.all([
controllers.api.loadConfig(req),
user.bans.canLoginIfBanned(req.uid),
Expand Down

0 comments on commit a69bc2c

Please sign in to comment.