Skip to content

Commit 52b6cdc

Browse files
Update apps/site/util/downloadUtils/archive.tsx
Co-authored-by: Aviv Keller <me@aviv.sh> Signed-off-by: Caner Akdas <canerakdas@gmail.com>
1 parent 1e6e0f4 commit 52b6cdc

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)