Skip to content

Commit

Permalink
Update Metadata-Helpers.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored Nov 7, 2022
1 parent c05f409 commit 26f6bb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/common/scripts/Helpers/Metadata-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ function GetDocsMsService($packageInfo, $serviceName)
}

function compare-and-merge-metadata ($original, $updated) {
$updateMetdata = (($updated | ForEach-Object { "$($_[0]): $($_[1])" }) -join "`r`n") + "`r`n"
$updateMetadata = (($updated | ForEach-Object { "$($_[0]): $($_[1])" }) -join "`r`n") + "`r`n"
$updatedKeys = $updated | ForEach-Object { $_[0]}
if (!$original) {
return $updateMetdata
return $updateMetadata
}
$originalTable = ConvertFrom-StringData -StringData $original -Delimiter ":"
foreach ($key in $originalTable.Keys) {
Expand All @@ -106,7 +106,7 @@ function compare-and-merge-metadata ($original, $updated) {
$updateMetdata += "$key`: $($originalTable[$key])`r`n"
}
}
return $updateMetdata
return $updateMetadata
}

function GenerateDocsMsMetadata($originalMetadata, $language, $languageDisplayName, $serviceName, $tenantId, $clientId, $clientSecret, $msService)
Expand Down

0 comments on commit 26f6bb8

Please sign in to comment.