Skip to content

Commit 8c097be

Browse files
azure-sdkscbedd
andauthored
adding missing parens to apiview-helpers (#41392)
Co-authored-by: Scott Beddall <[email protected]>
1 parent 6fb7a14 commit 8c097be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eng/common/scripts/Helpers/ApiView-Helpers.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ function Set-ApiViewCommentForPR {
214214

215215
try {
216216
$existingComment = Get-GitHubIssueComments -RepoOwner $RepoOwner -RepoName $RepoName -IssueNumber $PrNumber -AuthToken $AuthToken
217-
$existingAPIViewComment = $existingComment | Where-Object {
217+
$existingAPIViewComment = $existingComment | Where-Object {
218218
$_.body.StartsWith("**API Change Check**", [StringComparison]::OrdinalIgnoreCase) -or $_.body.StartsWith("## API Change Check", [StringComparison]::OrdinalIgnoreCase) }
219219
} catch {
220220
LogWarning "Failed to get comments from Pull Request: $PrNumber in repo: $repoFullName"
221221
}
222-
222+
223223
try {
224224
if ($existingAPIViewComment) {
225225
LogDebug "Updating existing APIView comment..."
@@ -251,7 +251,7 @@ function Create-API-Review {
251251
)
252252
$specGenSDKContent = Get-Content -Path $SpecGenSDKArtifactPath -Raw | ConvertFrom-Json
253253
$language = ($specGenSDKContent.language -split "-")[-1]
254-
254+
255255
foreach ($requestData in $specGenSDKContent.apiViewRequestData) {
256256
$requestUri = [System.UriBuilder]$apiviewEndpoint
257257
$requestParam = [System.Web.HttpUtility]::ParseQueryString('')
@@ -263,7 +263,7 @@ function Create-API-Review {
263263
$requestParam.Add('packageName', $requestData.packageName)
264264
$requestParam.Add('filePath', $requestData.filePath)
265265
if ($language -ieq "python") {
266-
$requestParam.Add('codeFile', Split-Path -Path $requestData.filePath -Leaf)
266+
$requestParam.Add('codeFile', (Split-Path -Path $requestData.filePath -Leaf))
267267
}
268268
$requestParam.Add('language', $language)
269269
$requestUri.query = $requestParam.toString()

0 commit comments

Comments
 (0)