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) {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue