Skip to content

Fix "fix rid processing on macOS" - #60668

Merged
wfurt merged 1 commit into
dotnet:mainfrom
AustinWise:patch-1
Oct 20, 2021
Merged

Fix "fix rid processing on macOS"#60668
wfurt merged 1 commit into
dotnet:mainfrom
AustinWise:patch-1

Conversation

@AustinWise

@AustinWiseAustinWise commented Oct 20, 2021

Copy link
Copy Markdown
Contributor

The else if (major == 12) in #60668 was dead code, since the previous if statement if (major > 11) would be true for major == 12. Judging by the comment and code, it looks like the intention of this else if statement was to match major == 11.

The `else if (major == 12)` is dead code, since the previous if `if (major > 11)` would be true for `major == 12`. Judging by the comment and code, it looks like the intention of this `else if` statement was to match `major == 11`.
@ghostghost added community-contribution Indicates that the PR has been added by a community member area-Host labels Oct 20, 2021
@ghost

Copy link
Copy Markdown

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

The else if (major == 12) was dead code, since the previous if statement if (major > 11) would be true for major == 12. Judging by the comment and code, it looks like the intention of this else if statement was to match major == 11.

Author:AustinWise
Assignees:-
Labels:

area-Host, community-contribution

Milestone:-

@AustinWise

Copy link
Copy Markdown
ContributorAuthor

CC @wfurt

@akoeplingerakoeplinger left a comment

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.

good catch, thanks

@wfurtwfurt left a comment

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.

thanks.

@wfurt
wfurt merged commit f5fe90e into dotnet:mainOct 20, 2021
wfurt pushed a commit to wfurt/runtime that referenced this pull request Oct 30, 2021
The `else if (major == 12)` is dead code, since the previous if `if (major > 11)` would be true for `major == 12`. Judging by the comment and code, it looks like the intention of this `else if` statement was to match `major == 11`.
Anipik pushed a commit that referenced this pull request Nov 10, 2021
* RID work for macOS 12 (#59066)
* fix rid processing on macOS (#60494)
* fix rid processing on macOS
* Update src/native/corehost/hostmisc/pal.unix.cpp
* Update src/native/corehost/hostmisc/pal.unix.cpp
* remove extra size calculation
* Fix "fix rid processing on macOS" (#60668)
The `else if (major == 12)` is dead code, since the previous if `if (major > 11)` would be true for `major == 12`. Judging by the comment and code, it looks like the intention of this `else if` statement was to match `major == 11`.
* add the packaging for platforms package
Co-authored-by: Austin Wise <AustinWise@gmail.com>
Co-authored-by: Anirudh Agnihotry <anagniho@microsoft.com>
@ghostghost locked as resolved and limited conversation to collaborators Nov 19, 2021
@AustinWise
AustinWise deleted the patch-1 branch February 21, 2022 23:07
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Hostcommunity-contributionIndicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@AustinWise@akoeplinger@wfurt