From 2e0b51d97056e69747153125ce49fde65da4a82b Mon Sep 17 00:00:00 2001 From: Ron Green <11993626+georgettica@users.noreply.github.com> Date: Mon, 19 Oct 2020 08:38:48 +0300 Subject: [PATCH] Change Nullable usage (#13793) --- .../commands/utility/ImplicitRemotingCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs index 2171dd66ae..b7266fa111 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs @@ -1793,8 +1793,8 @@ namespace Microsoft.PowerShell.Commands private void WriteProgress(string statusDescription, int? percentComplete, int? secondsRemaining) { ProgressRecordType recordType; - if (secondsRemaining.HasValue && secondsRemaining.Value == 0 && - percentComplete.HasValue && percentComplete.Value == 100) + if (secondsRemaining.HasValue && secondsRemaining.GetValueOrDefault() == 0 && + percentComplete.HasValue && percentComplete.GetValueOrDefault() == 100) { recordType = ProgressRecordType.Completed; }