From e25807adc2ae84df4afb24c4278b41e09fb43d7c Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com> Date: Wed, 24 Mar 2021 14:51:44 -0700 Subject: [PATCH] Cleanup language settings file (#1968) Co-authored-by: Wes Haggard --- eng/scripts/Language-Settings.ps1 | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 0cbc0baa4..b0ba57982 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -7,20 +7,9 @@ $BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=con -function Get-cpp-PackageInfoFromRepo($pkgPath, $serviceDirectory, $pkgName) +function Get-cpp-PackageInfoFromRepo($pkgPath, $serviceDirectory) { - # Test if the package path ends with the package name (e.g. sdk/storage/azure-storage-common) - # This function runs in a loop where $pkgPath might be the path to the package and must return - # $null in cases where $pkgPath is not the path to the package specified by $pkgName - if ($pkgName -and ($pkgName -ne (Split-Path -Leaf $pkgPath))) { - return $null - } - - if (!$pkgName) - { - $pkgName = Split-Path -Leaf $pkgPath - } - + $pkgName = Split-Path -Leaf $pkgPath $packageVersion = & $PSScriptRoot/Get-PkgVersion.ps1 -ServiceDirectory $serviceDirectory -PackageName $pkgName if ($null -ne $packageVersion) {