Skip to content

Commit

Permalink
Assert non-null instead of casting
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Sep 21, 2023
1 parent 33a78eb commit feb23d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/e2e-test-utils-playwright/src/metrics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export class Metrics {

const firstPaintStartTime = paintTimings.find(
( { name } ) => name === 'first-paint'
)?.startTime as number;
)!.startTime;

const firstContentfulPaintStartTime = paintTimings.find(
( { name } ) => name === 'first-contentful-paint'
)?.startTime as number;
)!.startTime;

return {
// Server side metric.
Expand Down

0 comments on commit feb23d5

Please sign in to comment.