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 DbConnectionPoolKey gettype #512

Merged
merged 2 commits into from
Apr 8, 2020
Merged

remove redundant DbConnectionPoolKey gettype #512

merged 2 commits into from
Apr 8, 2020

Conversation

SimonCropp
Copy link
Contributor

@SimonCropp SimonCropp commented Apr 7, 2020

i think the GetType is redundant since an as is done below. also converted to a pattern match instead

@cheenamalhotra
Copy link
Member

LGTM

Could you also update "netcore" class (here) to reflect the same change?

@SimonCropp
Copy link
Contributor Author

@cheenamalhotra yep. nice attention to detail, done

@SimonCropp
Copy link
Contributor Author

do u want all the other double ups of "as and null checks" converted to pattern matching?

@SimonCropp SimonCropp changed the title remov redundant DbConnectionPoolKey gettype remove redundant DbConnectionPoolKey gettype Apr 7, 2020
@cheenamalhotra
Copy link
Member

do u want all the other double ups of "as and null checks" converted to pattern matching?

We'd have to be extra careful for those changes to verify it does not change behavior, improvements are always welcome!

@SimonCropp
Copy link
Contributor Author

well i will look at that in a diff PR.

@cheenamalhotra cheenamalhotra added this to the 2.0.0-preview3 milestone Apr 8, 2020
@cheenamalhotra cheenamalhotra merged commit b408929 into dotnet:master Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants