Skip to content

Commit

Permalink
fix case when err is null
Browse files Browse the repository at this point in the history
  • Loading branch information
devknoll committed Feb 9, 2020
1 parent 1a4291f commit fd1fdfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/next-server/server/next-server.ts
Expand Up @@ -1085,7 +1085,7 @@ export default class Server {
{ ...this.renderOpts, amphtml, hasAmp }
)
} catch (err) {
if (err.code !== 'ENOENT' || !this.dynamicRoutes) {
if (err?.code !== 'ENOENT' || !this.dynamicRoutes) {
throw err
}

Expand Down

0 comments on commit fd1fdfc

Please sign in to comment.