From 12c0468e524d4a0cdd0971528cc9ae040de66339 Mon Sep 17 00:00:00 2001 From: rallytime Date: Tue, 8 Aug 2017 10:37:30 -0400 Subject: [PATCH] Simplify logic: pythonVersion already defaults to "" --- bootstrap-salt.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bootstrap-salt.ps1 b/bootstrap-salt.ps1 index e25e258..9a7671a 100644 --- a/bootstrap-salt.ps1 +++ b/bootstrap-salt.ps1 @@ -232,10 +232,7 @@ If (!$version) { } $year = $version.Substring(0, 3) -If ([int]$year -lt 2017) { - $pythonVersion = "" -} -Else { +If ([int]$year -ge 2017) { If ($pythonVersion -eq "3") { $pythonVersion = "-Py3" }