Skip to content

Commit 49558a1

Browse files
committed
Fix rebase issue
Signed-off-by: paulober <[email protected]>
1 parent d866799 commit 49558a1

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
@@ -261,25 +261,12 @@ export async function downloadAndInstallArchive(
261261
if (!archiveExtension) {
262262
Logger.error(
263263
LoggerSource.downloader,
264-
`Could not determine archive extension for ${url}`
264+
`Could not determine archive extension for ${archiveFileName}`
265265
);
266266

267267
return false;
268268
}
269269

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

0 commit comments

Comments
 (0)