Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
nitedani committed Aug 1, 2024
1 parent 12a856c commit e945481
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vike-node/src/runtime/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export function createHandler<PlatformRequest>(options: VikeOptions<PlatformRequ
}

function getPageContext(platformRequest: PlatformRequest) {
return typeof options.pageContext === 'function'
? options.pageContext(platformRequest)
: (options.pageContext ?? {})
return typeof options.pageContext === 'function' ? options.pageContext(platformRequest) : options.pageContext ?? {}
}
}

Expand Down

0 comments on commit e945481

Please sign in to comment.