Skip to content

Commit

Permalink
drop return
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 27, 2020
1 parent 27bbb2b commit d9ee71c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/next-server/lib/router/router.ts
Expand Up @@ -491,8 +491,8 @@ export default class Router implements BaseRouter {
}
}

return this._getData<RouteInfo>(() => {
return (Component as any).__N_SSG
return this._getData<RouteInfo>(() =>
(Component as any).__N_SSG
? this._getStaticData(as)
: (Component as any).__N_SSP
? this._getServerData(as)
Expand All @@ -505,7 +505,7 @@ export default class Router implements BaseRouter {
asPath: as,
} as any
)
}).then(props => {
).then(props => {
routeInfo.props = props
this.components[route] = routeInfo
return routeInfo
Expand Down

0 comments on commit d9ee71c

Please sign in to comment.