Skip to content

Commit

Permalink
Remove leftover c8 ignore comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Feb 17, 2025
1 parent a1c6448 commit 3f199eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
7 changes: 1 addition & 6 deletions src/app/components/client/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,7 @@ export const Button = (props: ButtonProps) => {
target={target}
className={classes}
>
{
/* c8 ignore next 3 */
// Since the Node 20.10 upgrade, it's been intermittently marking this (and
// this comment) as uncovered, even though I think it's covered by tests.
isLoading ? <Loader /> : children
}
{isLoading ? <Loader /> : children}
</Link>
) : (
<button
Expand Down
10 changes: 1 addition & 9 deletions src/app/components/client/FixNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,7 @@ const StepImage = (props: {
? stepDataBrokerProfilesIcon
: props.section === "HighRisk"
? stepHighRiskDataBreachesIcon
: /* c8 ignore next 6 */
// These lines should be covered by unit tests, but since the Node
// 20.10 upgrade, it's been intermittently marking this (and this
// comment) as uncovered.
props.section === "LeakedPasswords"
: props.section === "LeakedPasswords"
? stepLeakedPasswordsIcon
: stepSecurityRecommendationsIcon;

Expand All @@ -220,10 +216,6 @@ const StepImage = (props: {
function calculateActiveProgressBarPosition(section: Props["currentSection"]) {
if (section === "high-risk-data-breach") {
return styles.beginHighRiskDataBreaches;
/* c8 ignore next 10 */
// These lines should be covered by unit tests, but since the Node 20.10
// upgrade, it's been intermittently marking them (and this comment) as
// uncovered.
} else if (section === "leaked-passwords") {
return styles.beginLeakedPasswords;
} else if (section === "security-recommendations") {
Expand Down

0 comments on commit 3f199eb

Please sign in to comment.