Skip to content

Commit 8a745ba

Browse files
committed
style(ahrefs): drop non-TSDoc inline comments introduced in this PR
Repo convention disallows non-TSDoc comments; removed the three explanatory // comments this PR added next to cents-to-USD conversions (keyword_overview, paid_pages, related_terms) - pre-existing comments elsewhere in the file are untouched, out of scope for this PR.
1 parent ea0e1a4 commit 8a745ba

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

apps/sim/tools/ahrefs/keyword_overview.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export const keywordOverviewTool: ToolConfig<
6969
keyword: result.keyword || '',
7070
searchVolume: result.volume ?? 0,
7171
keywordDifficulty: result.difficulty ?? null,
72-
// Ahrefs returns cpc in USD cents; convert to USD to match the documented unit
7372
cpc: typeof result.cpc === 'number' ? result.cpc / 100 : null,
7473
clicks: result.clicks ?? null,
7574
clicksPercentage: result.searches_pct_clicks_organic_only ?? null,

apps/sim/tools/ahrefs/paid_pages.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export const paidPagesTool: ToolConfig<AhrefsPaidPagesParams, AhrefsPaidPagesRes
8282
traffic: page.sum_traffic ?? null,
8383
keywords: page.keywords ?? null,
8484
topKeyword: page.top_keyword ?? null,
85-
// Ahrefs returns value in USD cents; convert to USD to match the documented unit
8685
value: typeof page.value === 'number' ? page.value / 100 : null,
8786
adsCount: page.ads_count ?? null,
8887
}))

apps/sim/tools/ahrefs/related_terms.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export const relatedTermsTool: ToolConfig<AhrefsRelatedTermsParams, AhrefsRelate
8181
keyword: item.keyword || '',
8282
volume: item.volume ?? null,
8383
keywordDifficulty: item.difficulty ?? null,
84-
// Ahrefs returns cpc in USD cents; convert to USD to match the documented unit
8584
cpc: typeof item.cpc === 'number' ? item.cpc / 100 : null,
8685
parentTopic: item.parent_topic ?? null,
8786
trafficPotential: item.traffic_potential ?? null,

0 commit comments

Comments
 (0)