1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Local variable 'out' is redundant. (#5710)

This commit is contained in:
Anderson Leite 2018-11-20 03:13:06 -08:00 committed by Tim Neutkens
parent 9547e77820
commit 0d44623f74

View file

@ -194,8 +194,7 @@ export default class Server {
async renderToHTML (req, res, pathname, query) {
try {
const out = await renderToHTML(req, res, pathname, query, this.renderOpts)
return out
return await renderToHTML(req, res, pathname, query, this.renderOpts)
} catch (err) {
if (err.code === 'ENOENT') {
res.statusCode = 404