Skip to content

Conversation

@georgettica
Copy link
Contributor

@georgettica georgettica commented Oct 16, 2020

PR Summary

changed format of nullable usage to one more appropriate

PR Context

related to #13791

PR Checklist

changed format of nullable usage to one more appropriate
@ghost ghost assigned iSazonov Oct 16, 2020
Co-authored-by: Ilya <darpa@yandex.ru>
@georgettica georgettica changed the title [WIP] fix: change Nullable usage (#13791) fix: change Nullable usage (#13791) Oct 16, 2020
@georgettica
Copy link
Contributor Author

Not sure why this fails, is there a way to retrigger the tests?

@iSazonov
Copy link
Collaborator

Restarted Windows CI.

@georgettica
Copy link
Contributor Author

@iSazonov, seems the checks passed can you approve this PR so I can continue?

@iSazonov iSazonov added CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log Hacktoberfest-Accepted Accepted to participate in Hacktoberfest labels Oct 19, 2020
@iSazonov iSazonov merged commit 2e0b51d into PowerShell:master Oct 19, 2020
@iSazonov iSazonov changed the title fix: change Nullable usage (#13791) Change Nullable usage Oct 19, 2020
@iSazonov iSazonov added this to the 7.2.0-preview.1 milestone Oct 19, 2020
if (secondsRemaining.HasValue && secondsRemaining.Value == 0 &&
percentComplete.HasValue && percentComplete.Value == 100)
if (secondsRemaining.HasValue && secondsRemaining.GetValueOrDefault() == 0 &&
percentComplete.HasValue && percentComplete.GetValueOrDefault() == 100)
Copy link
Member

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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

daxian-dbw added a commit that referenced this pull request Nov 18, 2020
iSazonov pushed a commit that referenced this pull request Nov 19, 2020
@iSazonov iSazonov added CL-NotInBuild Indicates that a PR is reverted and not part of the build. and removed CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log labels Nov 19, 2020
@georgettica georgettica deleted the georgettica/change-nullable-usage branch December 13, 2020 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-NotInBuild Indicates that a PR is reverted and not part of the build. Hacktoberfest-Accepted Accepted to participate in Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants