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:
parent
9547e77820
commit
0d44623f74
|
@ -194,8 +194,7 @@ export default class Server {
|
||||||
|
|
||||||
async renderToHTML (req, res, pathname, query) {
|
async renderToHTML (req, res, pathname, query) {
|
||||||
try {
|
try {
|
||||||
const out = await renderToHTML(req, res, pathname, query, this.renderOpts)
|
return await renderToHTML(req, res, pathname, query, this.renderOpts)
|
||||||
return out
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.code === 'ENOENT') {
|
if (err.code === 'ENOENT') {
|
||||||
res.statusCode = 404
|
res.statusCode = 404
|
||||||
|
|
Loading…
Reference in a new issue