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(
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 ) ;
You can’t perform that action at this time.
0 commit comments