chore: eslint prefer-destructuring

This commit is contained in:
Peter Jaszkowiak
2021-02-06 14:10:15 -07:00
committed by Julian Lam
parent 8d1462ffd8
commit 23f212a4c0
143 changed files with 192 additions and 195 deletions

View File

@@ -16,10 +16,10 @@ const relative_path = nconf.get('relative_path');
module.exports = function (middleware) {
middleware.processRender = function processRender(req, res, next) {
// res.render post-processing, modified from here: https://gist.github.com/mrlannigan/5051687
const render = res.render;
const { render } = res;
res.render = async function renderOverride(template, options, fn) {
const self = this;
const req = this.req;
const { req } = this;
options = options || {};
if (typeof options === 'function') {