Skip to content

Change Nullable usage - #13793

Merged
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
georgettica:georgettica/change-nullable-usage
Oct 19, 2020
Merged

Change Nullable usage#13793
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
georgettica:georgettica/change-nullable-usage

Conversation

@georgettica

@georgettica Ron Green (georgettica) commented Oct 16, 2020

Copy link
Copy Markdown
Contributor

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 Ilya (iSazonov) Oct 16, 2020
Co-authored-by: Ilya <darpa@yandex.ru>
@georgettica Ron Green (georgettica) changed the title [WIP] fix: change Nullable usage (#13791) fix: change Nullable usage (#13791) Oct 16, 2020
@georgettica

Copy link
Copy Markdown
Contributor Author

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

@iSazonov

Copy link
Copy Markdown
Collaborator

Restarted Windows CI.

@georgettica

Copy link
Copy Markdown
Contributor Author

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

@iSazonov Ilya (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
Ilya (iSazonov) merged commit 2e0b51d into PowerShell:master Oct 19, 2020
@iSazonov Ilya (iSazonov) changed the title fix: change Nullable usage (#13791) Change Nullable usage Oct 19, 2020
@iSazonov Ilya (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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ilya (@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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Dongbo Wang (daxian-dbw) added a commit that referenced this pull request Nov 18, 2020
Ilya (iSazonov) pushed a commit that referenced this pull request Nov 19, 2020
@iSazonov Ilya (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
Ron Green (georgettica) deleted the georgettica/change-nullable-usage branch December 13, 2020 10:11
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
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