From 5f2a008bed0a1d0ef20ba5844844f699b9755b02 Mon Sep 17 00:00:00 2001 From: praveenkuttappan Date: Thu, 27 May 2021 17:00:16 -0400 Subject: [PATCH] Fix bug in language mapping --- eng/common/scripts/Helpers/ApiView-Helpers.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 index c9d9b1c07e33e..3be12566e239a 100644 --- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 +++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 @@ -14,7 +14,10 @@ function MapLanguageName($language) elseif ($lang -eq "python"){ $lang = "Python" } - return $null + else{ + $lang = $null + } + return $lang } function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $apiKey)