Skip to content
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

Remove redundant call to ConvertToCanonForm #88171

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Conversation

IDisposable
Copy link
Contributor

Call to type.ConvertToCanonForm(CanonicalFormKind.Specific) is redundant as we just computed the canonType two lines up.

Reuse the computed value.

Call to `type.ConvertToCanonForm(CanonicalFormKind.Specific)` is redundant as we just computed the `canonType` two lines up. Reuse the computed value
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jun 29, 2023
@ghost
Copy link

ghost commented Jun 29, 2023

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

Issue Details

Call to type.ConvertToCanonForm(CanonicalFormKind.Specific) is redundant as we just computed the canonType two lines up.

Reuse the computed value.

Author: IDisposable
Assignees: -
Labels:

community-contribution, area-NativeAOT-coreclr

Milestone: -

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thank you!

@jkotas jkotas merged commit eccca2f into dotnet:main Jun 29, 2023
@IDisposable IDisposable deleted the review-nit branch June 29, 2023 07:53
@ghost ghost locked as resolved and limited conversation to collaborators Jul 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr community-contribution Indicates 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