Skip to content

Commit 6d6154e

Browse files
committed
Removed redundant code
1 parent 1a6b87e commit 6d6154e

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

eng/scripts/Language-Settings.ps1

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -504,20 +504,8 @@ function Find-java-Artifacts-For-Apireview($artifactDir, $packageInfo)
504504
return $null
505505
}
506506

507-
if ($packageInfo) {
508-
$artifactPath = Join-Path $artifactDir $packageInfo.Group $pkgName
509-
$files = @(Get-ChildItem "${artifactPath}" | Where-Object -FilterScript {$_.Name.EndsWith("sources.jar")})
510-
} else {
511-
# Find all source jar files in given artifact directory
512-
# Filter for package in "com.azure*" groupId.
513-
$artifactPath = Join-Path $artifactDir "com.azure*" $pkgName
514-
Write-Host "Checking for source jar in artifact path $($artifactPath)"
515-
$files = @(Get-ChildItem -Recurse "${artifactPath}" | Where-Object -FilterScript {$_.Name.EndsWith("sources.jar")})
516-
# And filter for packages in "io.clientcore*" groupId.
517-
# (Is there a way to pass more information here to know the explicit groupId?)
518-
$artifactPath = Join-Path $artifactDir "io.clientcore*" $pkgName
519-
$files += @(Get-ChildItem -Recurse "${artifactPath}" | Where-Object -FilterScript {$_.Name.EndsWith("sources.jar")})
520-
}
507+
$artifactPath = Join-Path $artifactDir $packageInfo.Group $pkgName
508+
$files = @(Get-ChildItem "${artifactPath}" | Where-Object -FilterScript {$_.Name.EndsWith("sources.jar")})
521509

522510
if (!$files)
523511
{

0 commit comments

Comments
 (0)