Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jan 1, 2025
1 parent fbb3aa4 commit 3f4a34e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/puppeteer/tasks/lighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ export const runLighthouseTask: PuppeteerTask = async (props) => {
const reportJsonPath = join(routeReport.artifactPath, ReportArtifacts.reportJson)
if (resolvedConfig.cache && fs.existsSync(reportJsonPath)) {
try {
const report = fs.readJsonSync(reportJsonPath, {encoding: 'utf-8'}) as Result
const report = fs.readJsonSync(reportJsonPath, { encoding: 'utf-8' }) as Result
routeReport.report = normaliseLighthouseResult(routeReport, report)
return routeReport
} catch(e) {
}
catch (e) {
logger.warn(`Failed to read cached lighthouse report for path "${routeReport.route.path}".`, e)
}
}
Expand Down

0 comments on commit 3f4a34e

Please sign in to comment.