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

Unnecessary else if in next-server/server/render.js (#5609)

This commit is contained in:
Luc 2018-11-16 05:48:19 +08:00 committed by Tim Neutkens
parent 74abf25396
commit b63dda7cf7

View file

@ -138,8 +138,6 @@ async function doRender (req, res, pathname, query, {
try { try {
if (err && dev) { if (err && dev) {
html = render(<ErrorDebug error={err} />) html = render(<ErrorDebug error={err} />)
} else if (err) {
html = render(app)
} else { } else {
html = render(app) html = render(app)
} }