Skip to content

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
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