Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adrianaixba
Copy link
Collaborator

No description provided.

@adrianaixba adrianaixba requested a review from adamraine July 18, 2023 22:19
@adrianaixba adrianaixba marked this pull request as ready for review July 18, 2023 22:19
@adrianaixba adrianaixba requested a review from a team as a code owner July 18, 2023 22:19
@adrianaixba
Copy link
Collaborator Author

might need a double check to make sure there's good coverage on the tests

await LanternFirstContentfulPaint.getPessimisticGraph(pageGraph, processedNavigation);
const fcpGraphURLs = new Set();
fcpGraph.traverse(node => {
if (node.type === 'network' ) fcpGraphURLs.add(node.record.url);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I realized this is copied but can you fix in both places?

Suggested change
if (node.type === 'network' ) fcpGraphURLs.add(node.record.url);
if (node.type === 'network') fcpGraphURLs.add(node.record.url);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh why doesnt yarn lint catch this lol

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://eslint.org/docs/latest/rules/no-multi-spaces

Looks like the lint rule only flags if there are multiple spaces.

adrianaixba and others added 2 commits July 19, 2023 13:53
Co-authored-by: Adam Raine <[email protected]>
Co-authored-by: Adam Raine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants