Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Oct 14, 2021
1 parent 1ee9520 commit 7bb2668
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/astro/src/internal/hydration-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HydrationMap {

private getComponentMetadata(Component: any): ComponentMetadata | null {
if(this.metadataCache.has(Component)) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return this.metadataCache.get(Component)!;
}
const metadata = this.findComponentMetadata(Component);
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export function createAstro(fileURLStr: string, site: string): TopLevelAstro {
fetchContent,
resolve(...segments) {
return segments.reduce(
(url, segment) => new URL(segment, url),
(u, segment) => new URL(segment, u),
url
).pathname
}
Expand Down
1 change: 1 addition & 0 deletions packages/astro/src/runtime/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export async function ssr({ astroConfig, filePath, logging, mode, origin, pathna
routeCache[route.component] =
routeCache[route.component] ||
(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
await mod.getStaticPaths!({
paginate: generatePaginateFunction(route),
rss: () => {
Expand Down

0 comments on commit 7bb2668

Please sign in to comment.