Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
dipratap committed Jan 21, 2025
1 parent 3a766e2 commit 12c4bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/metatags/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ async function calculateProjectedTraffic(context, site, detectedTags, log) {
const organicTraffic = getOrganicTrafficForEndpoint(endpoint, rumTrafficDataMap, log);
Object.values((tags)).forEach((tagIssueDetails) => {
// Multiplying by 1% for missing tags, and 0.5% for other tag issues
// For duplicate tags, each page's traffic is multiplied by .5% so it amounts to 0.5% * number of duplicates.
// For duplicate tags, each page's traffic is multiplied by .5% so
// it amounts to 0.5% * number of duplicates.
const multiplier = tagIssueDetails.issue.includes('Missing') ? 0.01 : 0.005;
projectedTraffic += organicTraffic * multiplier;
});
Expand Down

0 comments on commit 12c4bd0

Please sign in to comment.