Skip to content

Commit

Permalink
Stop calling switch.IsPresent
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeminglyScience authored May 23, 2022
1 parent e5aea8d commit a5aa12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/AssertRequiredModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end {
return
}

Install-Module $Name -MinimumVersion $RequiredVersion -AllowPrerelease:$Prerelease -Force:$Force.IsPresent -Scope CurrentUser
Install-Module $Name -MinimumVersion $RequiredVersion -AllowPrerelease:$Prerelease -Force:$Force -Scope CurrentUser
return
}

Expand All @@ -43,7 +43,7 @@ end {
try {
Import-Module @importModuleSplat -Force
} catch [System.IO.FileNotFoundException] {
Install-Module $Name -MinimumVersion $RequiredVersion -AllowPrerelease:$Prerelease -Force:$Force.IsPresent -Scope CurrentUser
Install-Module $Name -MinimumVersion $RequiredVersion -AllowPrerelease:$Prerelease -Force:$Force -Scope CurrentUser
Import-Module @importModuleSplat -Force
}
}

0 comments on commit a5aa12a

Please sign in to comment.