File tree Expand file tree Collapse file tree 2 files changed +126
-354
lines changed Expand file tree Collapse file tree 2 files changed +126
-354
lines changed Original file line number Diff line number Diff line change @@ -261,25 +261,12 @@ export async function downloadAndInstallArchive(
261
261
if ( ! archiveExtension ) {
262
262
Logger . error (
263
263
LoggerSource . downloader ,
264
- `Could not determine archive extension for ${ url } `
264
+ `Could not determine archive extension for ${ archiveFileName } `
265
265
) ;
266
266
267
267
return false ;
268
268
}
269
269
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
-
283
270
const tmpBasePath = join ( tmpdir ( ) , "pico-sdk" ) ;
284
271
await mkdir ( tmpBasePath , { recursive : true } ) ;
285
272
const archiveFilePath = join ( tmpBasePath , archiveFileName ) ;
You can’t perform that action at this time.
0 commit comments