-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: de-dupe URLs in is-on-http, uses-http2 #4950
Conversation
@@ -35,13 +35,13 @@ module.exports = [ | |||
extendedInfo: { | |||
value: { | |||
results: { | |||
length: 18, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i kinda like being so explicit, though ideally in failure we see exactly where the difference is.
can we avoid dropping back to >15
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:( alright
}; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of this dance should we just do this instead:
const uniqueUrls = Array.from(new Set(resources));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const uniqueUrls = Array.from(new Set(resources));
unfortunately won't dedupe because it's an object, so they'll all be unique.
We could add it to the filter instead, the Boolean thing is pretty ugly :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're moving this to replace .filter(Boolean)
|
||
const headings = [ | ||
{key: 'url', itemType: 'url', text: 'Insecure URL'}, | ||
]; | ||
|
||
return { | ||
rawValue: insecureRecords.length === 0, | ||
rawValue: insecureURLs.length === 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, doesn't matter :)
how's it lookin' now @paulirish ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
should fix our recent CI flakes too :)