Skip to content

Revert "Fix nullable usage on authenticode" - #14134

Merged
Ilya (iSazonov) merged 1 commit into
masterfrom
revert-13804-bugfix/fix-usage-nullable
Nov 19, 2020
Merged

Revert "Fix nullable usage on authenticode"#14134
Ilya (iSazonov) merged 1 commit into
masterfrom
revert-13804-bugfix/fix-usage-nullable

Conversation

@daxian-dbw

@daxian-dbw Dongbo Wang (daxian-dbw) commented Nov 18, 2020

Copy link
Copy Markdown
Member

When the Nullable<T>.HasValue check is necesary, we should keep using Nullable<T>.Value after the check. Comparing to Nullable<T>.GetValueOrDefault(), it's semantically more clear that "I want the current value, not the default value" in this case.

Therefore, revert PR #13804 as agreed in #13791 (comment)

@daxian-dbw Dongbo Wang (daxian-dbw) changed the title Revert "Fix nullable usage on authenticode (#13791)" Revert "Fix nullable usage on authenticode (#13804)" Nov 18, 2020
@daxian-dbw Dongbo Wang (daxian-dbw) changed the title Revert "Fix nullable usage on authenticode (#13804)" Revert "Fix nullable usage on authenticode" Nov 18, 2020
@iSazonov Ilya (iSazonov) added the CL-NotInBuild Indicates that a PR is reverted and not part of the build. label Nov 19, 2020
@iSazonov
Ilya (iSazonov) merged commit 9b57c6e into master Nov 19, 2020
@iSazonov
Ilya (iSazonov) deleted the revert-13804-bugfix/fix-usage-nullable branch November 19, 2020 03:16
@iSazonov Ilya (iSazonov) added this to the 7.2.0-preview.2 milestone Nov 19, 2020
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants