Skip to content

Commit 553ebd3

Browse files
committed
remove comments
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 53893c4 commit 553ebd3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ui/src/utils/acsrepo/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export async function getLatestKubernetesIsoParams (arch) {
3939
try {
4040
const html = await fetch(BASE_KUBERNETES_ISO_URL, { cache: 'no-store' }).then(r => r.text())
4141

42-
// Grab all .iso hrefs from the index page
4342
const hrefs = [...html.matchAll(/href="([^"]+\.iso)"/gi)].map(m => m[1])
4443

4544
// Prefer files that explicitly include the arch (e.g. ...-x86_64.iso)
@@ -50,7 +49,6 @@ export async function getLatestKubernetesIsoParams (arch) {
5049
isoHrefs = hrefs.filter(h => /setup-\d+\.\d+\.\d+\.iso$/i.test(h))
5150
}
5251

53-
// Map to { name, semanticversion, url, arch }
5452
const entries = isoHrefs.map(h => {
5553
const m = h.match(/setup-(?:v)?(\d+\.\d+\.\d+)(?:-calico)?(?:-(x86_64|arm64))?/i)
5654
return m
@@ -67,7 +65,6 @@ export async function getLatestKubernetesIsoParams (arch) {
6765

6866
if (entries.length === 0) throw new Error('No matching ISOs found')
6967

70-
// Semver-style sort descending
7168
entries.sort((a, b) => {
7269
const pa = a.semanticversion.split('.').map(Number)
7370
const pb = b.semanticversion.split('.').map(Number)

0 commit comments

Comments
 (0)