Skip to content

Commit 7186a9b

Browse files
committed
Merge branch 'feat/simplified-download' of https://github.com/canerakdas/nodejs.org into feat/simplified-download
2 parents 2759b68 + 52b6cdc commit 7186a9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/site/util/downloadUtils/archive.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ export const buildReleaseArtifacts = (
135135
* It expects the version to be in the format 'v22.0.4' or 'archive'.
136136
*/
137137
export const extractVersionFromPath = (pathname: string | undefined) => {
138-
if (!pathname) return null;
138+
if (!pathname) {
139+
return null;
140+
}
139141

140142
const segments = pathname.split('/').filter(Boolean);
141143
const version = segments.pop();

0 commit comments

Comments
 (0)