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:
parent
74abf25396
commit
b63dda7cf7
|
@ -138,8 +138,6 @@ async function doRender (req, res, pathname, query, {
|
|||
try {
|
||||
if (err && dev) {
|
||||
html = render(<ErrorDebug error={err} />)
|
||||
} else if (err) {
|
||||
html = render(app)
|
||||
} else {
|
||||
html = render(app)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue