From b63dda7cf7e9a58c3687fb8007c1d899b692584d Mon Sep 17 00:00:00 2001 From: Luc Date: Fri, 16 Nov 2018 05:48:19 +0800 Subject: [PATCH] Unnecessary else if in next-server/server/render.js (#5609) --- packages/next-server/server/render.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/next-server/server/render.js b/packages/next-server/server/render.js index 98ae9ebe..b6ed6fb3 100644 --- a/packages/next-server/server/render.js +++ b/packages/next-server/server/render.js @@ -138,8 +138,6 @@ async function doRender (req, res, pathname, query, { try { if (err && dev) { html = render() - } else if (err) { - html = render(app) } else { html = render(app) }