Skip to content

Commit ceb910b

Browse files
committed
Fix rebase issue
Signed-off-by: paulober <[email protected]>
1 parent 840553d commit ceb910b

File tree

2 files changed

+126
-354
lines changed

2 files changed

+126
-354
lines changed

src/utils/download.mts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -265,25 +265,12 @@ export async function downloadAndInstallArchive(
265265
if (!archiveExtension) {
266266
Logger.error(
267267
LoggerSource.downloader,
268-
`Could not determine archive extension for ${url}`
268+
`Could not determine archive extension for ${archiveFileName}`
269269
);
270270

271271
return false;
272272
}
273273

274-
// TODO: find and eliminate issue why this is necesarry
275-
if (archiveExtension.length > 6) {
276-
archiveExtension = getArchiveExtension(archiveFileName);
277-
if (!archiveExtension) {
278-
Logger.error(
279-
LoggerSource.downloader,
280-
`Could not determine archive extension for ${archiveFileName}`
281-
);
282-
283-
return false;
284-
}
285-
}
286-
287274
const tmpBasePath = join(tmpdir(), "pico-sdk");
288275
await mkdir(tmpBasePath, { recursive: true });
289276
const archiveFilePath = join(tmpBasePath, archiveFileName);

0 commit comments

Comments
 (0)