Skip to content

Commit a5957c8

Browse files
committed
more whitespace changes
1 parent 905f702 commit a5957c8

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

src/dotnet-install.ps1

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -620,21 +620,20 @@ function DownloadFile($Source, [string]$OutPath) {
620620
}
621621

622622
function SafeRemoveFile($Path) {
623-
try {
624-
if (Test-Path $Path)
625-
{
626-
Remove-Item $Path
627-
Say-Verbose "The temporary file `"$Path`" was removed."
628-
}
629-
else
630-
{
631-
Say-Verbose "The temporary file `"$Path`" does not exist, therefore is not removed."
632-
}
633-
}
634-
catch
635-
{
636-
Say "Failed to remove the temporary file: `"$Path`", remove it manually."
637-
}
623+
try {
624+
if (Test-Path $Path) {
625+
Remove-Item $Path
626+
Say-Verbose "The temporary file `"$Path`" was removed."
627+
}
628+
else
629+
{
630+
Say-Verbose "The temporary file `"$Path`" does not exist, therefore is not removed."
631+
}
632+
}
633+
catch
634+
{
635+
Say "Failed to remove the temporary file: `"$Path`", remove it manually."
636+
}
638637
}
639638

640639
function Prepend-Sdk-InstallRoot-To-Path([string]$InstallRoot, [string]$BinFolderRelativePath) {
@@ -747,7 +746,7 @@ try {
747746
}
748747
catch {
749748
Say "Cannot download: $DownloadLink"
750-
SafeRemoveFile -Path $ZipPath
749+
SafeRemoveFile -Path $ZipPath
751750

752751
if ($LegacyDownloadLink) {
753752
$DownloadLink = $LegacyDownloadLink
@@ -759,7 +758,7 @@ catch {
759758
}
760759
catch {
761760
Say "Cannot download: $DownloadLink"
762-
SafeRemoveFile -Path $ZipPath
761+
SafeRemoveFile -Path $ZipPath
763762
$DownloadFailed = $true
764763
}
765764
}

0 commit comments

Comments
 (0)