Cleanup lint

master
Joe Biellik 4 years ago
parent 6b2c61bf1b
commit a51dba8f55

@ -118,7 +118,7 @@ module.exports = {
// /?xxx // /?xxx
if (!ctx.request.body.highlight && !ctx.query.highlight && ctx.query) { if (!ctx.request.body.highlight && !ctx.query.highlight && ctx.query) {
ctx.request.body.highlight = Object.keys(ctx.query).filter((k) => k !== 'redirect' && k !== 'expire')[0]; ctx.request.body.highlight = Object.keys(ctx.query).find((k) => k !== 'redirect' && k !== 'expire');
} }
let highlight = ''; let highlight = '';

Loading…
Cancel
Save