Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions apps/site/components/withDownloadSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
const locale = useLocale();

const snippets = provideDownloadSnippets(locale);
const { pathname } = getClientContext();

Check failure on line 30 in apps/site/components/withDownloadSection.tsx

View workflow job for this annotation

GitHub Actions / Quality checks

'pathname' is assigned a value but never used

// Some available translations do not have download snippets translated or have them partially translated
// This aims to merge the available translated snippets with the fallback snippets
Expand All @@ -36,9 +36,7 @@
.concat(snippets);

// Decides which initial release to use based on the current pathname
const initialRelease = pathname.endsWith('/current')
? 'Current'
: 'Active LTS';
const initialRelease = 'Current';
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

The pathname variable is now unused after removing the conditional logic. Consider removing it from the component's dependencies or props if it's no longer needed elsewhere in the component.

Copilot uses AI. Check for mistakes.

return (
<WithNodeRelease status={initialRelease}>
Expand Down
Loading