Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
janicklas-ralph committed Jan 26, 2021
1 parent 9163e4e commit 7a3b6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/next-server/lib/post-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function processHTML(
}

class FontOptimizerMiddleware implements PostProcessMiddleware {
fontDefinitions: Array<string> = []
fontDefinitions: (string | undefined)[][] = []
inspect(
originalDom: HTMLElement,
_data: postProcessData,
Expand Down Expand Up @@ -138,7 +138,7 @@ class FontOptimizerMiddleware implements PostProcessMiddleware {
// The font is already optimized and probably the response is cached
continue
}
const fontContent = options.getFontDefinition(url)
const fontContent = options.getFontDefinition(url as string)
if (!fontContent) {
/**
* In case of unreachable font definitions, fallback to default link tag.
Expand Down

0 comments on commit 7a3b6a3

Please sign in to comment.