Skip to content

Commit bea3155

Browse files
committed
use new signature of FindArtifactForApiReviewFn
1 parent 94c96ae commit bea3155

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eng/common/scripts/Create-APIReview.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,17 @@ function ProcessPackage($packageInfo)
183183
# Check if the function supports the packageInfo parameter
184184
$functionInfo = Get-Command $FindArtifactForApiReviewFn -ErrorAction SilentlyContinue
185185
$supportsPackageInfoParam = $false
186-
186+
187187
if ($functionInfo -and $functionInfo.Parameters) {
188188
# Check if function specifically supports packageInfo parameter
189189
$parameterNames = $functionInfo.Parameters.Keys
190190
$supportsPackageInfoParam = $parameterNames -contains 'packageInfo'
191191
}
192-
192+
193193
# Call function with appropriate parameters
194194
if ($supportsPackageInfoParam) {
195195
LogInfo "Calling $FindArtifactForApiReviewFn with packageInfo parameter"
196-
$packages = &$FindArtifactForApiReviewFn $ArtifactPath $pkgArtifactName $packageInfo
196+
$packages = &$FindArtifactForApiReviewFn $ArtifactPath $packageInfo
197197
}
198198
else {
199199
LogInfo "Calling $FindArtifactForApiReviewFn with legacy parameters"

0 commit comments

Comments
 (0)