File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -336,9 +336,7 @@ class DotnetTool {
336336 async getQueryServices ( ) {
337337 const builder = new ArgumentsBuilder ( ) . addArgument ( "nuget" ) . addArgument ( "list" ) . addArgument ( "source" ) . addKeyValue ( "format" , "short" ) ;
338338 const result = await this . execute ( "dotnet" , builder . build ( ) ) ;
339- const nugetSources = [
340- ...( result . stdout ?? "" ) . matchAll ( / ^ E (?< index > .+ ) / gm)
341- ] . map ( ( m ) => m . groups . index ) ;
339+ const nugetSources = [ ...( result . stdout ?? "" ) . matchAll ( / ^ E (?< index > .+ ) / gm) ] . map ( ( m ) => m . groups . index ) ;
342340 if ( ! nugetSources . length ) {
343341 this . buildAgent . error ( "Failed to fetch an enabled package source for dotnet." ) ;
344342 return [ ] ;
@@ -381,9 +379,7 @@ class DotnetTool {
381379 if ( ! queryServices . length ) {
382380 return null ;
383381 }
384- let versions = ( await Promise . all (
385- queryServices . map ( async ( service ) => await this . queryVersionsFromNugetSource ( service , toolName , includePrerelease ) )
386- ) ) . flat ( ) ;
382+ let versions = ( await Promise . all ( queryServices . map ( async ( service ) => await this . queryVersionsFromNugetSource ( service , toolName , includePrerelease ) ) ) ) . flat ( ) ;
387383 versions = [ ...new Set ( versions ) ] ;
388384 this . buildAgent . debug ( `got versions: ${ versions . join ( ", " ) } ` ) ;
389385 const version = semverExports . maxSatisfying ( versions , versionSpec , { includePrerelease } ) ;
You can’t perform that action at this time.
0 commit comments