Skip to content

Commit

Permalink
build.ps1 - Remove TernaryReturn as no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Oct 14, 2021
1 parent f904b88 commit db9e041
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ param(
Set-StrictMode -version latest;
$ErrorActionPreference = "Stop";

function TernaryReturn
{
param(
[Parameter(Position = 0, ValueFromPipeline = $true)]
[bool] $Yes,
[Parameter(Position = 1, ValueFromPipeline = $true)]
$Value,
[Parameter(Position = 2, ValueFromPipeline = $true)]
$Value2
)

if($Yes) {
return $Value
}

$Value2
}

function Write-Diagnostic
{
param(
Expand Down

0 comments on commit db9e041

Please sign in to comment.