Skip to content

Commit

Permalink
(maint) Correct the code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
it-praktyk committed Feb 15, 2019
1 parent 7510e78 commit fc70d5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ param(

$chocTempDir = $env:TEMP
$tempDir = Join-Path $chocTempDir "$($env:chocolateyPackageName)"
if ($env:chocolateyPackageVersion -ne $null) { $tempDir = Join-Path $tempDir "$($env:chocolateyPackageVersion)"; }
if ($null -ne $env:chocolateyPackageVersion) { $tempDir = Join-Path $tempDir "$($env:chocolateyPackageVersion)"; }
$tempDir = $tempDir -replace '\\chocolatey\\chocolatey\\', '\chocolatey\'
if (![System.IO.Directory]::Exists($tempDir)) { [System.IO.Directory]::CreateDirectory($tempDir) | Out-Null }
$downloadFilePath = Join-Path $tempDir "$($packageName)Install.$fileType"

if ($url -eq '' -or $url -eq $null) {
$url = $file
}
}
if ($url64bit -eq '' -or $url64bit -eq $null) {
$url64bit = $file64
}
Expand Down

0 comments on commit fc70d5e

Please sign in to comment.