Skip to content

Commit

Permalink
Avoid use of ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jander-msft committed Aug 26, 2024
1 parent e33048b commit 9b73482
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eng/DependencyManagement.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

0 comments on commit 9b73482

Please sign in to comment.