Skip to content

Commit

Permalink
chore: fix prettier error
Browse files Browse the repository at this point in the history
  • Loading branch information
yosuke-furukawa committed Nov 23, 2019
1 parent c42aa48 commit e1c1278
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/next/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export default async function(
hotReloader: null,
canonicalBase: (nextConfig.amp && nextConfig.amp.canonicalBase) || '',
isModern: nextConfig.experimental.modern,
ampValidator: (nextConfig.experimental.amp && nextConfig.experimental.amp.validator) || '',
ampValidator:
(nextConfig.experimental.amp && nextConfig.experimental.amp.validator) ||
'',
}

const { serverRuntimeConfig, publicRuntimeConfig } = nextConfig
Expand Down
5 changes: 4 additions & 1 deletion packages/next/server/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export default class DevServer extends Server {
html: string,
pathname: string
) => {
const validatorPath = this.nextConfig.experimental && this.nextConfig.experimental.amp && this.nextConfig.experimental.amp.validator
const validatorPath =
this.nextConfig.experimental &&
this.nextConfig.experimental.amp &&
this.nextConfig.experimental.amp.validator
return AmpHtmlValidator.getInstance(validatorPath).then(validator => {
const result = validator.validateString(html)
ampValidation(
Expand Down

0 comments on commit e1c1278

Please sign in to comment.