From 9b734827b82dfdb3129b670de1a4189a3e6b363e Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Mon, 26 Aug 2024 09:30:00 -0700 Subject: [PATCH] Avoid use of ternary operator --- eng/DependencyManagement.psm1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eng/DependencyManagement.psm1 b/eng/DependencyManagement.psm1 index 83ffd37acd..ca2f65aa5a 100644 --- a/eng/DependencyManagement.psm1 +++ b/eng/DependencyManagement.psm1 @@ -27,5 +27,9 @@ function Resolve-DotnetProductUrl([string] $akaMsUrl) { } function Get-ProductReleaseState() { - return $(Get-Branch) -ieq 'main' ? 'Release' : 'Prerelease' + if ($(Get-Branch) -ieq 'main') { + return 'Release' + } else { + return 'Prerelease' + } }