-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Change Nullable usage #13793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Nullable usage #13793
Conversation
changed format of nullable usage to one more appropriate
src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Ilya <darpa@yandex.ru>
|
Not sure why this fails, is there a way to retrigger the tests? |
|
Restarted Windows CI. |
|
@iSazonov, seems the checks passed can you approve this PR so I can continue? |
| if (secondsRemaining.HasValue && secondsRemaining.Value == 0 && | ||
| percentComplete.HasValue && percentComplete.Value == 100) | ||
| if (secondsRemaining.HasValue && secondsRemaining.GetValueOrDefault() == 0 && | ||
| percentComplete.HasValue && percentComplete.GetValueOrDefault() == 100) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iSazonov I don't understand this change. HasValue check has been done, so it's fine to directly use .Value, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Come from dotnet/runtime#33792
This reverts commit 2e0b51d.
PR Summary
changed format of nullable usage to one more appropriate
PR Context
related to #13791
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.