Skip to content

Commit

Permalink
Make sure verbose message is not null (PowerShell#17363)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw authored May 17, 2022
1 parent e248694 commit f900824
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/UpdateDotnetRuntime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ function Get-DotnetUpdate {
} else {
$shouldUpdate = $false
$newVersion = $latestSDKVersionString
if ($null -eq $currentVersion.PreReleaseLabel) {
$Message = "$latestSDKversion is not preview, update manually."
}
$Message = $null -eq $currentVersion.PreReleaseLabel ? "$latestSDKversion is not preview, update manually." : "No update needed."
}
} catch {
Write-Verbose -Verbose "Error occured: $_.message"
Expand Down

0 comments on commit f900824

Please sign in to comment.